]> granicus.if.org Git - apache/commitdiff
Fix a bug in mod_status. ap_ht_time expects an ap_time_t type, instead of
authorRyan Bloom <rbb@apache.org>
Fri, 31 Dec 1999 17:38:25 +0000 (17:38 +0000)
committerRyan Bloom <rbb@apache.org>
Fri, 31 Dec 1999 17:38:25 +0000 (17:38 +0000)
a time_t now.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84383 13f79535-47bb-0310-9956-ffa450edef68

modules/generators/mod_status.c

index 75a5a0b01f88ccf95abe98d7a667538ad02b78d2..1901816fab114fdd63be4f0ac921b354296f58b7 100644 (file)
@@ -82,7 +82,10 @@ static int status_handler(request_rec *r)
     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)