diff options
author | Karel Zak | 2011-08-01 13:16:21 +0200 |
---|---|---|
committer | Karel Zak | 2011-08-01 13:16:21 +0200 |
commit | cfe2d24951efb82a1349b21644f43c92ee71ae18 (patch) | |
tree | a04dc861ac910e08feb31e22871e04523d248bb3 /sys-utils/setarch.c | |
parent | tunelp: fix compiler warnings [-Wsign-compare] (diff) | |
download | kernel-qcow2-util-linux-cfe2d24951efb82a1349b21644f43c92ee71ae18.tar.gz kernel-qcow2-util-linux-cfe2d24951efb82a1349b21644f43c92ee71ae18.tar.xz kernel-qcow2-util-linux-cfe2d24951efb82a1349b21644f43c92ee71ae18.zip |
setarch: fix compiler warnings [-Wsign-compare]
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/setarch.c')
-rw-r--r-- | sys-utils/setarch.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys-utils/setarch.c b/sys-utils/setarch.c index 5f187a764..35efca4a9 100644 --- a/sys-utils/setarch.c +++ b/sys-utils/setarch.c @@ -148,7 +148,7 @@ int set_arch(const char *pers, unsigned long options) { struct utsname un; int i; - unsigned long pers_value, res; + unsigned long pers_value; struct { int perval; @@ -214,8 +214,7 @@ int set_arch(const char *pers, unsigned long options) errx(EXIT_FAILURE, _("%s: Unrecognized architecture"), pers); pers_value = transitions[i].perval | options; - res = set_pers(pers_value); - if(res == -EINVAL) + if (set_pers(pers_value) == -EINVAL) return 1; uname(&un); |