]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
use duplicate accessLogTime function from access_log.c
authorwessels <>
Sat, 21 Feb 1998 01:47:22 +0000 (01:47 +0000)
committerwessels <>
Sat, 21 Feb 1998 01:47:22 +0000 (01:47 +0000)
src/debug.cc

index 6e18f31c24af2ff17b4845ffc033545f3e1d5802..e8a6c67e53b1d2fc711e07481cc8720812f17457 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: debug.cc,v 1.57 1998/01/12 04:30:36 wessels Exp $
+ * $Id: debug.cc,v 1.58 1998/02/20 18:47:22 wessels Exp $
  *
  * DEBUG: section 0     Debug Routines
  * AUTHOR: Harvest Derived
 #include "squid.h"
 
 static char *debug_log_file = NULL;
-static char *accessLogTime(time_t);
 
 #ifdef __STDC__
 void
@@ -281,17 +280,3 @@ _db_rotate_log(void)
     if (debug_log != stderr)
        debugOpenLog(Config.Log.log);
 }
-
-static char *
-accessLogTime(time_t t)
-{
-    struct tm *tm;
-    static char buf[128];
-    static time_t last_t = 0;
-    if (t != last_t) {
-       tm = localtime(&t);
-       strftime(buf, 127, "%Y/%m/%d %H:%M:%S", tm);
-       last_t = t;
-    }
-    return buf;
-}