summaryrefslogtreecommitdiff
path: root/extra/config/symbol.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-11-08 02:28:40 +0000
committerEric Andersen <andersen@codepoet.org>2002-11-08 02:28:40 +0000
commita0af35a9dbefe36440fcd6b603a89cf21041c0a1 (patch)
tree4b595e16b3b45ab00fde5cd89076de48bf9aefb2 /extra/config/symbol.c
parent92e03da6a446faa5ad8946fc90794e918db90454 (diff)
Some minor changes from Stefan Allius to make conf and
mconf compile under Solaris.
Diffstat (limited to 'extra/config/symbol.c')
-rw-r--r--extra/config/symbol.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/extra/config/symbol.c b/extra/config/symbol.c
index 7ec2ff48b..f2d0015de 100644
--- a/extra/config/symbol.c
+++ b/extra/config/symbol.c
@@ -404,12 +404,12 @@ bool sym_string_valid(struct symbol *sym, const char *str)
ch = *str++;
if (ch == '-')
ch = *str++;
- if (!isdigit(ch))
+ if (!isdigit((int)ch))
return false;
if (ch == '0' && *str != 0)
return false;
while ((ch = *str++)) {
- if (!isdigit(ch))
+ if (!isdigit((int)ch))
return false;
}
return true;
@@ -418,7 +418,7 @@ bool sym_string_valid(struct symbol *sym, const char *str)
str += 2;
ch = *str++;
do {
- if (!isxdigit(ch))
+ if (!isxdigit((int)ch))
return false;
} while ((ch = *str++));
return true;