]> git.ipfire.org Git - thirdparty/systemd.git/commit
tree-wide: introduce empty_or_dash() helper
authorLennart Poettering <lennart@poettering.net>
Mon, 8 Apr 2019 10:03:33 +0000 (12:03 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 8 Apr 2019 10:03:33 +0000 (12:03 +0200)
commite7b88b7bc1b33af3966349ca59ecd3d25c3e8504
treed0ebd1d919bca2916a84c89351b77007ad30ec46
parentea505047c542ee0a6d242c9c1bb6683b553b58db
tree-wide: introduce empty_or_dash() helper

At quite a few places we check isempty() || streq(…, "-"), let's add a
helper to simplify that, and replace that by a single function call.
src/basic/string-util.h
src/import/export.c
src/import/import-fs.c
src/import/import.c
src/import/pull.c
src/locale/keymap-util.c
src/machine/machinectl.c
src/sysusers/sysusers.c
src/tmpfiles/tmpfiles.c