summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-07-13 10:33:59 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-07-13 10:33:59 +0000
commit29f164500488ac53828c6b107a5221f988f94b53 (patch)
treed4d8f3b32103239d88af52ca196d904bc3524b60
parentca51ecfda1f469586e85a3540f6146fb8f2c4cca (diff)
2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed compile error. Thanks gknauf for the patch. * src/asctime_r.c
-rw-r--r--ChangeLog5
-rw-r--r--src/asctime_r.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 6fa81e77..fe51f171 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
+ Fixed compile error. Thanks gknauf for the patch.
+ * src/asctime_r.c
+
+2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
+
Included asctime_r.h from a2time.h.
* src/a2time.h
diff --git a/src/asctime_r.c b/src/asctime_r.c
index 581e1708..5d7ee3db 100644
--- a/src/asctime_r.c
+++ b/src/asctime_r.c
@@ -52,7 +52,7 @@ static void asctime_r_atexit()
DeleteCriticalSection(&asctime_r_cs);
}
-char * asctime_r (const struct tm*, char *buf);
+char * asctime_r (const struct tm *tyme, char *buf)
{
static char *p;
static int initialized = 0;
@@ -64,7 +64,7 @@ char * asctime_r (const struct tm*, char *buf);
}
EnterCriticalSection(&asctime_r_cs);
- p = asctime(tm);
+ p = asctime(tyme);
memcpy(buf, p, 26);
LeaveCriticalSection(&asctime_r_cs);
return buf;