Skip to content
Snippets Groups Projects
Commit db3d11ee authored by Markus Armbruster's avatar Markus Armbruster
Browse files

cutils: Simplify how parse_uint() checks for whitespace


Use qemu_isspace() so we don't have to cast to unsigned char.

Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
Message-Id: <20190514180311.16028-7-armbru@redhat.com>
Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@redhat.com>
parent 33c846ef
No related branches found
No related tags found
No related merge requests found
......@@ -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 == '-') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment