aboutsummaryrefslogtreecommitdiffstats
path: root/epan/strutil.c
diff options
context:
space:
mode:
authorStephen Fisher <steve@stephen-fisher.com>2007-04-13 23:32:21 +0000
committerStephen Fisher <steve@stephen-fisher.com>2007-04-13 23:32:21 +0000
commitfa57c8fc446d10fb0b3c5252bc01e940a91bb21a (patch)
treee9da56f00dc44d86a3bbc90e9812755fa6b91fbd /epan/strutil.c
parentd9e06450f401f55f27423146a2a0868719139128 (diff)
Fix some Solaris buildbot warnings
svn path=/trunk/; revision=21423
Diffstat (limited to 'epan/strutil.c')
-rw-r--r--epan/strutil.c6
1 files changed, 3 insertions, 3 deletions
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++;