[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r227 - branches/GNUnet06/src/util
From: |
durner |
Subject: |
[GNUnet-SVN] r227 - branches/GNUnet06/src/util |
Date: |
Wed, 9 Feb 2005 13:55:46 -0800 (PST) |
Author: durner
Date: 2005-02-09 13:55:44 -0800 (Wed, 09 Feb 2005)
New Revision: 227
Modified:
branches/GNUnet06/src/util/logging.c
Log:
fix the fix
Modified: branches/GNUnet06/src/util/logging.c
===================================================================
--- branches/GNUnet06/src/util/logging.c 2005-02-09 21:47:34 UTC (rev
226)
+++ branches/GNUnet06/src/util/logging.c 2005-02-09 21:55:44 UTC (rev
227)
@@ -177,6 +177,7 @@
struct logfiledef def;
char datestr[80];
time_t curtime;
+ char *datefmt;
time(&curtime);
#ifdef localtime_r
@@ -190,13 +191,14 @@
fn = (char *) realloc(fn, strlen(fn) + 82);
strcat(fn, "_");
def.basename = STRDUP(fn);
+#ifndef MINGW
+ datefmt = nl_langinfo(D_FMT);
+#else
+ datefmt = "%Y%m%d";
+#endif
GNUNET_ASSERT(0 != strftime(datestr,
80,
-#ifndef MINGW
- nl_langinfo(D_FMT),
-#else
- "%Y%m%d",
-#endif
+ datefmt,
&def.curtime));
strcat(fn, datestr);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r227 - branches/GNUnet06/src/util,
durner <=