]> git.ipfire.org Git - thirdparty/util-linux.git/commit
logger: rework error handling in logger_gettimeofday()
authorThomas Weißschuh <thomas@t-8ch.de>
Tue, 9 Apr 2024 09:00:08 +0000 (11:00 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Tue, 9 Apr 2024 09:10:11 +0000 (11:10 +0200)
commit564750580b2a78c2f3f0e8d02bdef9503d6b110c
treea9c9bc0bebf4d732a7fcda500f20fe18e74be456
parent1c0137735020c36ce8fb39d731b2acef7e4cb0cd
logger: rework error handling in logger_gettimeofday()

* Fail when LOGGER_TEST_TIMEOFDAY is set to an invalid value
* Fail with return -1 and errno, the same as normal gettimeofday()

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
misc-utils/logger.c