httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: httpd-2.0/server main.c
Date Wed, 05 Dec 2001 15:41:25 GMT
trawick     01/12/05 07:41:25

  Modified:    server   main.c
  Log:
  hmmm... gcc 2.95.2 on AIX says sizeof is long...  fix up
  a printf to always have a match between the format string
  and argument
  
  Revision  Changes    Path
  1.110     +5 -1      httpd-2.0/server/main.c
  
  Index: main.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/main.c,v
  retrieving revision 1.109
  retrieving revision 1.110
  diff -u -r1.109 -r1.110
  --- main.c	2001/12/04 18:36:51	1.109
  +++ main.c	2001/12/05 15:41:25	1.110
  @@ -89,7 +89,11 @@
       printf("Server built:   %s\n", ap_get_server_built());
       printf("Server's Module Magic Number: %u:%u\n",
   	   MODULE_MAGIC_NUMBER_MAJOR, MODULE_MAGIC_NUMBER_MINOR);
  -    printf("Architecture:   %d-bit\n", 8 * sizeof(void *));
  +    /* sizeof(foo) is long on some platforms so we might as well
  +     * make it long everywhere to keep the printf format
  +     * consistent
  +     */
  +    printf("Architecture:   %ld-bit\n", 8 * (long)sizeof(void *));
       printf("Server compiled with....\n");
   #ifdef BIG_SECURITY_HOLE
       printf(" -D BIG_SECURITY_HOLE\n");
  
  
  

Mime
View raw message