]> sigrok.org Git - libsigrok.git/commit
output/csv: use intermediate time_t var, silence compiler warning master github/master
authorGerhard Sittig <redacted>
Mon, 1 Jan 2024 13:37:50 +0000 (14:37 +0100)
committerGerhard Sittig <redacted>
Wed, 3 Jan 2024 19:21:36 +0000 (20:21 +0100)
commitb503d24cdf56abf8c0d66d438ccac28969f01670
treeb7ef69ab9faa0ae5204592a0b8f45089aba47084
parent0fd3ed06a75d57178330b854a29bd119996b1a08
output/csv: use intermediate time_t var, silence compiler warning

There are platforms where timeval and time_t disagree on the width of
the data type of the field which holds seconds. Passing a pointer to an
unexpected type results in warnings (and probably unreliable execution).

Assign the value which is gotten from a timeval to an intermediate
time_t variable, so that the ctime() invocation becomes portable.
src/output/csv.c