]> git.ipfire.org Git - thirdparty/systemd.git/commit
journal: modernize sd_journal_get_realtime_usec() a bit
authorLennart Poettering <lennart@poettering.net>
Wed, 8 Feb 2023 10:05:46 +0000 (11:05 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 8 Feb 2023 17:33:23 +0000 (17:33 +0000)
commit834f759c4942aaea68ab4cfc72d311fa43f8dd9f
treec6f8595396e006ad7ac46607d0444fb484f5089d
parentbccad0584e858c33691471fdd6be26edd8462e0b
journal: modernize sd_journal_get_realtime_usec() a bit

This does what 404803e6caad2de2d8e74caab0b79ec3f030f801 did for the
monotonic timestamp getter, but for the realtime timestamp.

It also also makes the return value optional, exactly as for the
monotonic timestamp logic.
src/libsystemd/sd-journal/sd-journal.c