diff options
Diffstat (limited to 'sysklogd/syslogd.c')
-rw-r--r-- | sysklogd/syslogd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c index 598f28d0c..6ddfd771a 100644 --- a/sysklogd/syslogd.c +++ b/sysklogd/syslogd.c | |||
@@ -842,7 +842,7 @@ static void timestamp_and_log(int pri, char *msg, int len) | |||
842 | #if ENABLE_FEATURE_SYSLOGD_PRECISE_TIMESTAMPS | 842 | #if ENABLE_FEATURE_SYSLOGD_PRECISE_TIMESTAMPS |
843 | if (!timestamp) { | 843 | if (!timestamp) { |
844 | struct timeval tv; | 844 | struct timeval tv; |
845 | gettimeofday(&tv, NULL); | 845 | xgettimeofday(&tv); |
846 | now = tv.tv_sec; | 846 | now = tv.tv_sec; |
847 | timestamp = ctime(&now) + 4; /* skip day of week */ | 847 | timestamp = ctime(&now) + 4; /* skip day of week */ |
848 | /* overwrite year by milliseconds, zero terminate */ | 848 | /* overwrite year by milliseconds, zero terminate */ |