~ubuntu-branches/debian/sid/tcp-wrappers/sid

« back to all changes in this revision

Viewing changes to fix_options.c

  • Committer: Package Import Robot
  • Author(s): Marco d'Itri
  • Date: 2013-12-30 07:05:06 UTC
  • Revision ID: package-import@ubuntu.com-20131230070506-e9t3yjkbfdwrzr1d
Tags: 7.6.q-25
* Replace portmap with rpcbind in the hosts.* files comments.
  (Closes: #722230)
* Update patch fix_warnings: fix the declaration of fix_options().
  (Closes: #710391)

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
 
33
33
/* fix_options - get rid of IP-level socket options */
34
34
 
35
 
fix_options(request)
 
35
void fix_options(request)
36
36
struct request_info *request;
37
37
{
38
38
#ifdef IP_OPTIONS
39
39
    unsigned char optbuf[BUFFER_SIZE / 3], *cp;
40
40
    char    lbuf[BUFFER_SIZE], *lp;
41
41
#ifdef __GLIBC__
42
 
    size_t  optsize = sizeof(optbuf), ipproto;
 
42
    socklen_t optsize = sizeof(optbuf);
 
43
    int     ipproto;
43
44
#else
44
45
    int     optsize = sizeof(optbuf), ipproto;
45
46
#endif