httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@locus.apache.org
Subject cvs commit: apache-1.3/src/support rotatelogs.c
Date Wed, 21 Jun 2000 22:54:48 GMT
wrowe       00/06/21 15:54:47

  Modified:    src/support rotatelogs.c
  Log:
    No code flow change, but gets rid of two compiler warning emits...
     * MAX_PATH redefinition
     * no return() value from int main(...)
  
  Revision  Changes    Path
  1.12      +7 -3      apache-1.3/src/support/rotatelogs.c
  
  Index: rotatelogs.c
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/support/rotatelogs.c,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- rotatelogs.c	1998/08/03 09:15:33	1.11
  +++ rotatelogs.c	2000/06/21 22:54:45	1.12
  @@ -7,14 +7,16 @@
    */
   
   
  -#define BUFSIZE		65536
  -#define MAX_PATH	1024
  -
   #include "ap_config.h"
   #include <time.h>
   #include <errno.h>
   #include <fcntl.h>
   
  +#define BUFSIZE		65536
  +#ifndef MAX_PATH
  +#define MAX_PATH	1024
  +#endif
  +
   int main (int argc, char **argv)
   {
       char buf[BUFSIZE], buf2[MAX_PATH];
  @@ -79,4 +81,6 @@
   	    exit(5);
   	}
       }
  +    /* We never get here, but surpress the compile warning */
  +    return (0);
   }
  
  
  

Mime
View raw message