mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
Add a missing long cast to log.c for portability
svn:r199
This commit is contained in:
parent
0fed84785e
commit
2b2eff33c5
@ -62,7 +62,7 @@ void log(int severity, const char *format, ...)
|
|||||||
{
|
{
|
||||||
t = time(NULL);
|
t = time(NULL);
|
||||||
strftime(buf, 200, "%b %d %H:%M:%S", localtime(&t));
|
strftime(buf, 200, "%b %d %H:%M:%S", localtime(&t));
|
||||||
printf("%s.%.3ld ", buf, now.tv_usec / 1000);
|
printf("%s.%.3ld ", buf, (long)now.tv_usec / 1000);
|
||||||
sev_to_string(buf, 200, severity);
|
sev_to_string(buf, 200, severity);
|
||||||
printf("[%s] ", buf);
|
printf("[%s] ", buf);
|
||||||
vprintf(format,ap);
|
vprintf(format,ap);
|
||||||
|
Loading…
Reference in New Issue
Block a user