diff options
| author | Sami Kerola <kerolasa@iki.fi> | 2015-02-22 14:41:40 +0000 |
|---|---|---|
| committer | Karel Zak <kzak@redhat.com> | 2015-02-24 12:42:06 +0100 |
| commit | cd2a6f1cfd1ca85aae127fcdb249df46163d1a7c (patch) | |
| tree | ee3b96fd19dca305682de5e00973ce66d701a038 /disk-utils/sfdisk.c | |
| parent | 47d20536e08fd1daa7023a56d6e97ae09cb2ea1b (diff) | |
| download | util-linux-cd2a6f1cfd1ca85aae127fcdb249df46163d1a7c.tar.gz | |
rpmatch: use symbolic value when evaluation return codes
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'disk-utils/sfdisk.c')
| -rw-r--r-- | disk-utils/sfdisk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/disk-utils/sfdisk.c b/disk-utils/sfdisk.c index b7d4480056..bce94e5044 100644 --- a/disk-utils/sfdisk.c +++ b/disk-utils/sfdisk.c @@ -167,7 +167,7 @@ static int ask_callback(struct fdisk_context *cxt, if (rc) break; x = rpmatch(buf); - if (x == 1 || x == 0) { + if (x == RPMATCH_YES || x == RPMATCH_NO) { fdisk_ask_yesno_set_result(ask, x); break; } |
