83
80
now = localtime(&sec); /* not multithread safe but we don't care */
85
82
snprintf(timebuf, sizeof(timebuf), "%02d:%02d:%02d.%06ld",
86
now->tm_hour, now->tm_min, now->tm_sec, tv.tv_usec);
83
(int)now->tm_hour, (int)now->tm_min, (int)now->tm_sec, (long)tv.tv_usec);
86
vsnprintf(buffer, sizeof(buffer), msg, ap);
92
89
logfp = fopen(serverlogfile, "a");