From a0af35a9dbefe36440fcd6b603a89cf21041c0a1 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 8 Nov 2002 02:28:40 +0000 Subject: Some minor changes from Stefan Allius to make conf and mconf compile under Solaris. --- extra/config/symbol.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'extra/config/symbol.c') 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; -- cgit v1.2.3