diff options
author | Lennart Poettering <lennart@poettering.net> | 2019-04-08 12:03:33 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2019-04-08 12:03:33 +0200 |
commit | e7b88b7bc1b33af3966349ca59ecd3d25c3e8504 (patch) | |
tree | d0ebd1d919bca2916a84c89351b77007ad30ec46 /src/locale | |
parent | ea505047c542ee0a6d242c9c1bb6683b553b58db (diff) | |
download | systemd-e7b88b7bc1b33af3966349ca59ecd3d25c3e8504.tar.gz systemd-e7b88b7bc1b33af3966349ca59ecd3d25c3e8504.tar.bz2 systemd-e7b88b7bc1b33af3966349ca59ecd3d25c3e8504.zip |
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.
Diffstat (limited to 'src/locale')
-rw-r--r-- | src/locale/keymap-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/locale/keymap-util.c b/src/locale/keymap-util.c index 17540089ba..18affb79ec 100644 --- a/src/locale/keymap-util.c +++ b/src/locale/keymap-util.c @@ -33,7 +33,7 @@ static bool startswith_comma(const char *s, const char *prefix) { } static const char* strnulldash(const char *s) { - return isempty(s) || streq(s, "-") ? NULL : s; + return empty_or_dash(s) ? NULL : s; } static const char* systemd_kbd_model_map(void) { |