diff options
author | jiripopek <Jiri.Popek@bmw.de> | 2019-07-23 15:02:05 +0200 |
---|---|---|
committer | Saya Sugiura <39760799+ssugiura@users.noreply.github.com> | 2019-07-25 09:00:02 +0900 |
commit | 923ba7d4ab9c73300a9ef54e0ac4d1d7c02e2ba7 (patch) | |
tree | 008b711fe38f9edafbd0390a092cd2bd98a10609 /src/system/dlt-system-journal.c | |
parent | c32b3a39e484c1fc5ff625c752c6beeb9426ff85 (diff) | |
download | DLT-daemon-923ba7d4ab9c73300a9ef54e0ac4d1d7c02e2ba7.tar.gz |
dlt-system-journal: fixed localtime compile error
fixes compiler error
"error: too many arguments to function ‘localtime’"
Signed-off-by: jiripopek <Jiri.Popek@bmw.de>
Diffstat (limited to 'src/system/dlt-system-journal.c')
-rw-r--r-- | src/system/dlt-system-journal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/system/dlt-system-journal.c b/src/system/dlt-system-journal.c index e4d5314..5c10c50 100644 --- a/src/system/dlt-system-journal.c +++ b/src/system/dlt-system-journal.c @@ -164,7 +164,7 @@ void dlt_system_journal_get_timestamp(sd_journal *journal, MessageTimestamp *tim } time_secs = time_usecs / 1000000; - localtime((const time_t *)(&time_secs), timeinfo); + localtime_r((const time_t *)(&time_secs), timeinfo); strftime(buffer_realtime_formatted, sizeof(buffer_realtime_formatted), "%Y/%m/%d %H:%M:%S", timeinfo); snprintf(timestamp->real, sizeof(timestamp->real), "%s.%06" PRIu64, buffer_realtime_formatted, |