From fa57c8fc446d10fb0b3c5252bc01e940a91bb21a Mon Sep 17 00:00:00 2001 From: Stephen Fisher Date: Fri, 13 Apr 2007 23:32:21 +0000 Subject: Fix some Solaris buildbot warnings svn path=/trunk/; revision=21423 --- epan/dfilter/dfilter-macro.c | 4 ++-- epan/strutil.c | 6 +++--- epan/uat.c | 4 ++-- epan/uat.h | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) (limited to 'epan') diff --git a/epan/dfilter/dfilter-macro.c b/epan/dfilter/dfilter-macro.c index 129e3dd411..c260a6b1d3 100644 --- a/epan/dfilter/dfilter-macro.c +++ b/epan/dfilter/dfilter-macro.c @@ -219,7 +219,7 @@ gchar* dfilter_macro_apply(const gchar* text, guint depth, gchar** error) { } break; } case NAME: { - if ( isalnum(c) || c == '_' ) { + if ( isalnum((int)c) || c == '_' ) { g_string_append_c(name,c); } else if ( c == ':') { state = ARGS; @@ -449,7 +449,7 @@ gboolean macro_name_chk(void* r _U_, const char* in_name, unsigned name_len, voi guint i; for (i=0; i < name_len; i++) { - if (!(in_name[i] == '_' || isalnum(in_name[i]) ) ) { + if (!(in_name[i] == '_' || isalnum((int)in_name[i]) ) ) { *error = "invalid char in name"; return FALSE; } diff --git a/epan/strutil.c b/epan/strutil.c index cc8f2c4fab..4b8aec9669 100644 --- a/epan/strutil.c +++ b/epan/strutil.c @@ -574,7 +574,7 @@ uri_str_to_bytes(const char *uri_str, GByteArray *bytes) { if (*p == '\0') return FALSE; hex_digit[1] = *p; hex_digit[2] = '\0'; - if (! isxdigit(hex_digit[0]) || ! isxdigit(hex_digit[1])) + if (! isxdigit((int)hex_digit[0]) || ! isxdigit((int)hex_digit[1])) return FALSE; val = (guint8) strtoul(hex_digit, NULL, 16); g_byte_array_append(bytes, &val, 1); @@ -691,7 +691,7 @@ oid_str_to_bytes(const char *oid_str, GByteArray *bytes) { p = oid_str; dot = NULL; while (*p) { - if (!isdigit(*p) && (*p != '.')) return FALSE; + if (!isdigit((int)*p) && (*p != '.')) return FALSE; if (*p == '.') { if (p == oid_str) return FALSE; if (!*(p+1)) return FALSE; @@ -707,7 +707,7 @@ oid_str_to_bytes(const char *oid_str, GByteArray *bytes) { subid0 = 0; /* squelch GCC complaints */ while (*p) { subid = 0; - while (isdigit(*p)) { + while (isdigit((int)*p)) { subid *= 10; subid += *p - '0'; p++; diff --git a/epan/uat.c b/epan/uat.c index 195d7659f8..85f8d4cb3f 100644 --- a/epan/uat.c +++ b/epan/uat.c @@ -186,7 +186,7 @@ static void putfld(FILE* fp, void* rec, uat_field_t* f) { for(i=0;i