summaryrefslogtreecommitdiffstats
path: root/src/locale
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2017-10-04 16:01:32 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-10-04 16:01:32 +0200
commit4c701096002fff540d9ddb3b21398c551ac3af78 (patch)
tree537e654dc92baa5eed5b6ff69867114384ecfa47 /src/locale
parentMerge pull request #6986 from OpenDZ/tixxdz/seccomp-more-default-syscalls-v1 (diff)
downloadsystemd-4c701096002fff540d9ddb3b21398c551ac3af78.tar.xz
systemd-4c701096002fff540d9ddb3b21398c551ac3af78.zip
tree-wide: use IN_SET macro (#6977)
Diffstat (limited to 'src/locale')
-rw-r--r--src/locale/keymap-util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/locale/keymap-util.c b/src/locale/keymap-util.c
index 7068603f0f..b71091f706 100644
--- a/src/locale/keymap-util.c
+++ b/src/locale/keymap-util.c
@@ -39,7 +39,7 @@ static bool startswith_comma(const char *s, const char *prefix) {
if (!s)
return false;
- return *s == ',' || *s == '\0';
+ return IN_SET(*s, ',', '\0');
}
static const char* strnulldash(const char *s) {
@@ -177,7 +177,7 @@ static int x11_read_data(Context *c) {
char_array_0(line);
l = strstrip(line);
- if (l[0] == 0 || l[0] == '#')
+ if (IN_SET(l[0], 0, '#'))
continue;
if (in_section && first_word(l, "Option")) {
@@ -425,7 +425,7 @@ static int read_next_mapping(const char* filename,
(*n)++;
l = strstrip(line);
- if (l[0] == 0 || l[0] == '#')
+ if (IN_SET(l[0], 0, '#'))
continue;
r = strv_split_extract(&b, l, WHITESPACE, EXTRACT_QUOTES);