You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rb...@hyperreal.org on 1999/12/31 18:38:25 UTC

cvs commit: apache-2.0/src/modules/standard mod_status.c

rbb         99/12/31 09:38:25

  Modified:    src/modules/standard mod_status.c
  Log:
  Fix a bug in mod_status.  ap_ht_time expects an ap_time_t type, instead of
  a time_t now.
  
  Revision  Changes    Path
  1.5       +4 -1      apache-2.0/src/modules/standard/mod_status.c
  
  Index: mod_status.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/modules/standard/mod_status.c,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- mod_status.c	1999/10/13 05:24:16	1.4
  +++ mod_status.c	1999/12/31 17:38:25	1.5
  @@ -82,7 +82,10 @@
       int i;
       ap_array_header_t *server_status;
       ap_status_table_row_t *status_rows;
  -    time_t nowtime = time(NULL);
  +    ap_time_t *nowtime = NULL;
  +
  +    ap_make_time(&nowtime, r->pool);
  +    ap_curtime(nowtime);
   
       r->allowed = (1 << M_GET);
       if (r->method_number != M_GET)