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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 == '-') {