]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/journal/journal-file.c
journald: minor fixes 2440/head
authorLennart Poettering <lennart@poettering.net>
Tue, 26 Jan 2016 13:06:35 +0000 (14:06 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 26 Jan 2016 13:13:30 +0000 (14:13 +0100)
commite167d7fd8d5fe918b6d675e16aeca2c43398a5b2
treef55b2debba6284f724f4a2ed1264d8e215d567ab
parentd8fc78b40fab1d1545b384eb0b8928b78c8828ff
journald: minor fixes

This primarily contains some minor coding style fixups for 7a24f3bf2fb181243a1957a0cdd54cd919396793 and earlier changes. Specifically:

* Don't log at log levels above LOG_DEBUG from "library" code like journal-file.c

* Don't negate errno values before passing them to log_debug_errno(), as the call can handle this fine anyway

* Cast some calls we knowingly ignore the return values of to (void)

* Don't clobber function call-by-ref return values on failure

* Don't mix function calls and variable declarations in one line

There's also one more relevant change: when failing to enqueue a journal change fs event, we'll run it immediately.
src/journal/journal-file.c
src/journal/journald-server.c