You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Brian Havard <br...@kheldar.apana.org.au> on 1998/06/15 15:40:51 UTC

[PATCH] Minor mod_status.c correction

The variable tick is only used when NO_TIMES isn't defined. Applies to OS/2
as well as Win32. Compiling on OS/2 gives:

mod_status.c: In function `status_handler':
mod_status.c:236: warning: unused variable `tick'


Index: mod_status.c
===================================================================
RCS file: /cvs/apache-1.3/src/modules/standard/mod_status.c,v
retrieving revision 1.88
diff -u -w -r1.88 mod_status.c
--- mod_status.c	1998/06/04 20:13:21	1.88
+++ mod_status.c	1998/06/15 13:33:37
@@ -232,7 +232,7 @@
     long req_time;
 #if defined(NEXT)
     float tick = HZ;
-#elif !defined(WIN32)
+#elif !defined(NO_TIMES)
     float tick = sysconf(_SC_CLK_TCK);
 #endif
 #endif /* STATUS */

--
 ______________________________________________________________________________
 |  Brian Havard                 |  "He is not the messiah!                   |
 |  brianh@kheldar.apana.org.au  |  He's a very naughty boy!" - Life of Brian |
 ------------------------------------------------------------------------------