httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dgau...@hyperreal.org
Subject cvs commit: apachen/src/main util_date.c
Date Mon, 22 Dec 1997 17:59:18 GMT
dgaudet     97/12/22 09:59:18

  Modified:    src/main util_date.c
  Log:
  cleanup: static initializations should be ... static... initialize
  at compile time for tighter code.
  
  Reviewed by:	Jim Jagielski, Martin Kraemer
  
  Revision  Changes    Path
  1.7       +2 -2      apachen/src/main/util_date.c
  
  Index: util_date.c
  ===================================================================
  RCS file: /export/home/cvs/apachen/src/main/util_date.c,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- util_date.c	1997/10/22 20:29:51	1.6
  +++ util_date.c	1997/12/22 17:59:17	1.7
  @@ -136,7 +136,7 @@
   {
       int year;
       time_t days;
  -    const int dayoffset[12] =
  +    static const int dayoffset[12] =
       {306, 337, 0, 31, 61, 92, 122, 153, 184, 214, 245, 275};
   
       year = t->tm_year;
  @@ -215,7 +215,7 @@
       struct tm ds;
       int mint, mon;
       const char *monstr, *timstr;
  -    const int months[12] =
  +    static const int months[12] =
       {
   	('J' << 16) | ('a' << 8) | 'n', ('F' << 16) | ('e' << 8) | 'b',
   	('M' << 16) | ('a' << 8) | 'r', ('A' << 16) | ('p' << 8) | 'r',
  
  
  

Mime
View raw message