diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-05-21 02:02:40 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-05-21 02:02:40 +0200 |
commit | c0ef53aa5b54e2b1d4abe316ebb12d3e1d0d9250 (patch) | |
tree | d0842515303624d288dbc015bf3f5da386dfaaf0 /src/delta | |
parent | 8e812a2301ad9f849f1b09e95d93e55df4557ec6 (diff) | |
download | systemd-c0ef53aa5b54e2b1d4abe316ebb12d3e1d0d9250.tar.gz systemd-c0ef53aa5b54e2b1d4abe316ebb12d3e1d0d9250.tar.bz2 systemd-c0ef53aa5b54e2b1d4abe316ebb12d3e1d0d9250.zip |
delta: drop PHP'ism
Diffstat (limited to 'src/delta')
-rw-r--r-- | src/delta/delta.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/delta/delta.c b/src/delta/delta.c index cb63b4a407..25c1f960fd 100644 --- a/src/delta/delta.c +++ b/src/delta/delta.c @@ -334,17 +334,17 @@ static int parse_flags(const char *flag_str, int flags) { size_t l; FOREACH_WORD(w, l, flag_str, state) { - if (strncmp("masked", w, l) == 0) { + if (strncmp("masked", w, l) == 0) flags |= SHOW_MASKED; - } else if (strncmp ("equivalent", w, l) == 0) { + else if (strncmp ("equivalent", w, l) == 0) flags |= SHOW_EQUIVALENT; - } else if (strncmp("redirected", w, l) == 0) { + else if (strncmp("redirected", w, l) == 0) flags |= SHOW_REDIRECTED; - } else if (strncmp("override", w, l) == 0) { + else if (strncmp("overriden", w, l) == 0) flags |= SHOW_OVERRIDEN; - } else if (strncmp("unchanged", w, l) == 0) { + else if (strncmp("unchanged", w, l) == 0) flags |= SHOW_UNCHANGED; - } else if (strncmp("default", w, l) == 0) { + else if (strncmp("default", w, l) == 0) flags |= SHOW_DEFAULTS; else return -EINVAL; |