diff options
author | Sami Kerola | 2015-02-22 15:41:40 +0100 |
---|---|---|
committer | Karel Zak | 2015-02-24 12:42:06 +0100 |
commit | cd2a6f1cfd1ca85aae127fcdb249df46163d1a7c (patch) | |
tree | ee3b96fd19dca305682de5e00973ce66d701a038 /login-utils | |
parent | eject: use parse_switch() (diff) | |
download | kernel-qcow2-util-linux-cd2a6f1cfd1ca85aae127fcdb249df46163d1a7c.tar.gz kernel-qcow2-util-linux-cd2a6f1cfd1ca85aae127fcdb249df46163d1a7c.tar.xz kernel-qcow2-util-linux-cd2a6f1cfd1ca85aae127fcdb249df46163d1a7c.zip |
rpmatch: use symbolic value when evaluation return codes
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'login-utils')
-rw-r--r-- | login-utils/vipw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/login-utils/vipw.c b/login-utils/vipw.c index 668f4d8c4..9fb25502c 100644 --- a/login-utils/vipw.c +++ b/login-utils/vipw.c @@ -352,7 +352,7 @@ int main(int argc, char *argv[]) printf(_("Would you like to edit %s now [y/n]? "), orig_file); if (fgets(response, sizeof(response), stdin)) { - if (rpmatch(response) == 1) + if (rpmatch(response) == RPMATCH_YES) edit_file(1); } } |