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 /include/rpmatch.h | |
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 'include/rpmatch.h')
-rw-r--r-- | include/rpmatch.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/rpmatch.h b/include/rpmatch.h index d62634bd8..f64d52e16 100644 --- a/include/rpmatch.h +++ b/include/rpmatch.h @@ -6,4 +6,8 @@ (*r == 'y' || *r == 'Y' ? 1 : *r == 'n' || *r == 'N' ? 0 : -1) #endif +#define RPMATCH_YES 1 +#define RPMATCH_NO 0 +#define RPMATCH_INVALID -1 + #endif /* UTIL_LINUX_RPMATCH_H */ |