projects
/
platform
/
upstream
/
c-ares.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f575aea
)
cast arg to isdigit to int
author
Ben Greear
<greearb@candelatech.com>
Fri, 30 Jul 2010 22:11:54 +0000
(15:11 -0700)
committer
Ben Greear
<greearb@candelatech.com>
Fri, 30 Jul 2010 22:11:54 +0000
(15:11 -0700)
Looks like it might silence a warning on Netware build.
Signed-off-by: Ben Greear <greearb@candelatech.com>
ares_options.c
patch
|
blob
|
history
diff --git
a/ares_options.c
b/ares_options.c
index
26dc678
..
461784b
100644
(file)
--- a/
ares_options.c
+++ b/
ares_options.c
@@
-178,7
+178,7
@@
int ares_set_servers_csv(ares_channel channel,
while (pp > start_host) {
if (*pp == ':')
break; /* yes */
- if (!isdigit(
*pp
)) {
+ if (!isdigit(
(int)(*pp)
)) {
/* Found end of digits before we found :, so wasn't a port */
pp = ptr;
break;