apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: apr/network_io/unix sa_common.c
Date Thu, 15 Mar 2001 21:54:59 GMT
trawick     01/03/15 13:54:59

  Modified:    network_io/unix sa_common.c
  Log:
  Get rid of a warning about using maxbits uninitialized (the compiler
  didn't realize we'd already checked the family)
  
  Revision  Changes    Path
  1.32      +2 -5      apr/network_io/unix/sa_common.c
  
  Index: sa_common.c
  ===================================================================
  RCS file: /home/cvs/apr/network_io/unix/sa_common.c,v
  retrieving revision 1.31
  retrieving revision 1.32
  diff -u -r1.31 -r1.32
  --- sa_common.c	2001/03/15 19:43:46	1.31
  +++ sa_common.c	2001/03/15 21:54:59	1.32
  @@ -634,7 +634,7 @@
   {
       apr_status_t rv;
       char *endptr;
  -    long bits, maxbits;
  +    long bits, maxbits = 32;
   
       /* filter out stuff which doesn't look remotely like an IP address; this helps 
        * callers like mod_access which have a syntax allowing hostname or IP address;
  @@ -656,11 +656,8 @@
       }
   
       if (mask_or_numbits) {
  -        if ((*ipsub)->family == AF_INET) {
  -            maxbits = 32;
  -        }
   #if APR_HAVE_IPV6
  -        else {
  +        if ((*ipsub)->family == AF_INET6) {
               maxbits = 128;
           }
   #endif
  
  
  

Mime
View raw message