httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@hyperreal.org
Subject cvs commit: apache-1.3/src/support logresolve.c
Date Thu, 28 May 1998 11:23:14 GMT
rse         98/05/28 04:23:14

  Modified:    src/support logresolve.c
  Log:
  The complete source tree passes "gcc .. -Wnested-externs .." quietly except
  for this this support program. Make it pass -Wnested-externs, too.
  
  Revision  Changes    Path
  1.14      +4 -3      apache-1.3/src/support/logresolve.c
  
  Index: logresolve.c
  ===================================================================
  RCS file: /export/home/cvs/apache-1.3/src/support/logresolve.c,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- logresolve.c	1998/05/02 11:15:15	1.13
  +++ logresolve.c	1998/05/28 11:23:13	1.14
  @@ -95,6 +95,10 @@
    * statistics - obvious
    */
   
  +#ifndef h_errno
  +extern int h_errno; /* some machines don't have this in their headers */
  +#endif
  +
   /* largeste value for h_errno */
   #define MAX_ERR (NO_ADDRESS)
   #define UNKNOWN_ERR (MAX_ERR+1)
  @@ -117,9 +121,6 @@
       struct nsrec **current, *new;
       struct hostent *hostdata;
       char *name;
  -#ifndef h_errno
  -    extern int h_errno; /* some machines don't have this in their headers */
  -#endif
   
       current = &nscache[((ipnum.s_addr + (ipnum.s_addr >> 8) +
   			 (ipnum.s_addr >> 16) + (ipnum.s_addr >> 24)) % BUCKETS)];
  
  
  

Mime
View raw message