diff options
author | Karel Zak | 2016-10-26 10:13:03 +0200 |
---|---|---|
committer | Karel Zak | 2016-10-26 10:13:47 +0200 |
commit | bae57b5a3c9fac14de4f0bb685958cb68937dc4d (patch) | |
tree | 1d2af90abf698201986ae2d893c6214de78aea93 /disk-utils/partx.c | |
parent | rtcwake: add note about RTC limits (diff) | |
download | kernel-qcow2-util-linux-bae57b5a3c9fac14de4f0bb685958cb68937dc4d.tar.gz kernel-qcow2-util-linux-bae57b5a3c9fac14de4f0bb685958cb68937dc4d.tar.xz kernel-qcow2-util-linux-bae57b5a3c9fac14de4f0bb685958cb68937dc4d.zip |
misc: fix unsigned int usage for ctype.h functions
Reported-by: "Yuriy M. Kaminskiy" <yumkam@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'disk-utils/partx.c')
-rw-r--r-- | disk-utils/partx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/disk-utils/partx.c b/disk-utils/partx.c index 46224a3f0..cff160fbe 100644 --- a/disk-utils/partx.c +++ b/disk-utils/partx.c @@ -193,10 +193,10 @@ static int get_partno_from_device(char *partition, dev_t devno) sz = strlen(partition); p = partition + sz - 1; - if (!isdigit((unsigned int) *p)) + if (!isdigit((unsigned char) *p)) goto err; - while (isdigit((unsigned int) *(p - 1))) p--; + while (isdigit((unsigned char) *(p - 1))) p--; errno = 0; partno = strtol(p, &end, 10); |