From: Markus Armbruster Date: Tue, 14 May 2019 18:03:11 +0000 (+0200) Subject: cutils: Simplify how parse_uint() checks for whitespace X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=db3d11ee3f0cb851124830172f0a93c3d77a450a;p=qemu.git cutils: Simplify how parse_uint() checks for whitespace Use qemu_isspace() so we don't have to cast to unsigned char. Signed-off-by: Markus Armbruster Message-Id: <20190514180311.16028-7-armbru@redhat.com> Reviewed-by: Philippe Mathieu-Daudé --- diff --git a/util/cutils.c b/util/cutils.c index d682c90901..9aacc422ca 100644 --- a/util/cutils.c +++ b/util/cutils.c @@ -683,7 +683,7 @@ int parse_uint(const char *s, unsigned long long *value, char **endptr, } /* make sure we reject negative numbers: */ - while (isspace((unsigned char)*s)) { + while (qemu_isspace(*s)) { s++; } if (*s == '-') {