dgaudet     99/02/22 09:13:06

  Modified:    src/include httpd.h
               src/main http_protocol.c
  Log:
  Fix a compile warning -- there was a const discarded with the recent
  verbose-errors-to change.  Also move status_lines[] to constant storage
  (better mem behaviour for kernels that do the right thing)... and let
  the const be propagated through r->status_line (anything which didn't
  treat that as a const before was broken -- now it'll be a compile
  warning).
  
  Revision  Changes    Path
  1.270     +1 -1      apache-1.3/src/include/httpd.h
  
  Index: httpd.h
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/include/httpd.h,v
  retrieving revision 1.269
  retrieving revision 1.270
  diff -u -r1.269 -r1.270
  --- httpd.h   1999/02/09 16:57:22     1.269
  +++ httpd.h   1999/02/22 17:13:02     1.270
  @@ -661,7 +661,7 @@
   
       time_t request_time;     /* When the request started */
   
  -    char *status_line;               /* Status line, if set by script */
  +    const char *status_line; /* Status line, if set by script */
       int status;                      /* In any case */
   
       /* Request method, two ways; also, protocol, etc..  Outside of 
protocol.c,
  
  
  
  1.259     +3 -3      apache-1.3/src/main/http_protocol.c
  
  Index: http_protocol.c
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/main/http_protocol.c,v
  retrieving revision 1.258
  retrieving revision 1.259
  diff -u -r1.258 -r1.259
  --- http_protocol.c   1999/02/16 14:29:51     1.258
  +++ http_protocol.c   1999/02/22 17:13:03     1.259
  @@ -1170,7 +1170,7 @@
    * and must be listed in order.
    */
   
  -static char *status_lines[RESPONSE_CODES] = {
  +static const char * const status_lines[RESPONSE_CODES] = {
       "100 Continue",
       "101 Switching Protocols",
       "102 Processing",
  @@ -2317,8 +2317,8 @@
               r = r->prev;
       }
       {
  -        char *title = status_lines[idx];
  -        char *h1;
  +        const char *title = status_lines[idx];
  +        const char *h1;
           const char *error_notes;
   
           /* Accept a status_line set by a module, but only if it begins
  
  
  

Reply via email to