diff options
author | Nikolai Kondrashov <spbnick@gmail.com> | 2011-12-28 10:34:37 +0200 |
---|---|---|
committer | Nikolai Kondrashov <spbnick@gmail.com> | 2011-12-28 10:38:03 +0200 |
commit | e3d1a07aa13cc6cfa04c685029f1f3c60fe15e5f (patch) | |
tree | 4001393c9505e7d4adb4954252952991345fb6ca /src/usbhid-dump.c | |
parent | 777f16529c6f10b21e1eebad5b24435f8e860c2a (diff) | |
download | usbhid-dump-e3d1a07aa13cc6cfa04c685029f1f3c60fe15e5f.tar.gz |
Fix Cygwin array subscript warnings
Fix "array subscript has type 'char'" warning on Cygwin by casting is* macro
arguments to int.
Diffstat (limited to 'src/usbhid-dump.c')
-rw-r--r-- | src/usbhid-dump.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/usbhid-dump.c b/src/usbhid-dump.c index fca81a9..7ceb683 100644 --- a/src/usbhid-dump.c +++ b/src/usbhid-dump.c @@ -597,7 +597,7 @@ parse_number_pair(const char *str, p = str; /* Skip space (prevent strtol doing so) */ - while (isspace(*p)) + while (isspace((int)*p)) p++; /* Extract the first number */ @@ -614,7 +614,7 @@ parse_number_pair(const char *str, p = end; /* Skip space */ - while (isspace(*p)) + while (isspace((int)*p)) p++; /* If it is the end of string */ @@ -630,7 +630,7 @@ parse_number_pair(const char *str, p++; /* Skip space (prevent strtol doing so) */ - while (isspace(*p)) + while (isspace((int)*p)) p++; /* Extract the second number */ @@ -646,7 +646,7 @@ parse_number_pair(const char *str, p = end; /* Skip space */ - while (isspace(*p)) + while (isspace((int)*p)) p++; /* If it is not the end of string */ @@ -729,7 +729,7 @@ parse_iface_num(const char *str, p = str; /* Skip space (prevent strtol doing so) */ - while (isspace(*p)) + while (isspace((int)*p)) p++; /* Extract interface number */ @@ -759,7 +759,7 @@ parse_timeout(const char *str, p = str; /* Skip space (prevent strtoll doing so) */ - while (isspace(*p)) + while (isspace((int)*p)) p++; /* Extract timeout */ |