mirror of https://github.com/aria2/aria2
2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed compile error. Thanks gknauf for the patch. * src/asctime_r.cpull/1/head
parent
ca51ecfda1
commit
29f1645004
|
@ -1,3 +1,8 @@
|
||||||
|
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>
|
2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
||||||
|
|
||||||
Included asctime_r.h from a2time.h.
|
Included asctime_r.h from a2time.h.
|
||||||
|
|
|
@ -52,7 +52,7 @@ static void asctime_r_atexit()
|
||||||
DeleteCriticalSection(&asctime_r_cs);
|
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 char *p;
|
||||||
static int initialized = 0;
|
static int initialized = 0;
|
||||||
|
@ -64,7 +64,7 @@ char * asctime_r (const struct tm*, char *buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
EnterCriticalSection(&asctime_r_cs);
|
EnterCriticalSection(&asctime_r_cs);
|
||||||
p = asctime(tm);
|
p = asctime(tyme);
|
||||||
memcpy(buf, p, 26);
|
memcpy(buf, p, 26);
|
||||||
LeaveCriticalSection(&asctime_r_cs);
|
LeaveCriticalSection(&asctime_r_cs);
|
||||||
return buf;
|
return buf;
|
||||||
|
|
Loading…
Reference in New Issue