projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33c846e
)
cutils: Simplify how parse_uint() checks for whitespace
author
Markus Armbruster
<armbru@redhat.com>
Tue, 14 May 2019 18:03:11 +0000
(20:03 +0200)
committer
Markus Armbruster
<armbru@redhat.com>
Wed, 22 May 2019 13:00:04 +0000
(15:00 +0200)
Use qemu_isspace() so we don't have to cast to unsigned char.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <
20190514180311
.16028-7-armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
util/cutils.c
patch
|
blob
|
history
diff --git
a/util/cutils.c
b/util/cutils.c
index d682c909015725c83f79e1dae0c678b4ac9cb028..9aacc422ca6aaf21fa81cea11f9f24be5ef5ab2c 100644
(file)
--- 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 == '-') {