diff options
author | Guy Harris <guy@alum.mit.edu> | 2007-07-14 00:37:01 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2007-07-14 00:37:01 +0000 |
commit | fad7133f8188d0f8600549c967b065ea09256d6b (patch) | |
tree | d461e9a80307638686913091cf8598563839a499 /epan/uat.c | |
parent | 90ab61d9f704d7cd5abc6df5f57f216e1eb1a99a (diff) |
Fix yet more casts of ctype.h macro arguments - and fix some cases where
we were passing an uncasted "char" to those macros.
svn path=/trunk/; revision=22306
Diffstat (limited to 'epan/uat.c')
-rw-r--r-- | epan/uat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/uat.c b/epan/uat.c index cd180f329d..44ec7a53c3 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<fld_len;i++) { char c = fld_ptr[i]; - if (c == '"' || c == '\\' || ! isprint((int)c) ) { + if (c == '"' || c == '\\' || ! isprint((guchar)c) ) { fprintf(fp,"\\x%.2x",c); } else { putc(c,fp); @@ -513,7 +513,7 @@ char* uat_unesc(const char* si, guint in_len, guint* len_p) { char c1 = *(s+1); char c0 = *(s+2); - if (isxdigit((int)c1) && isxdigit((int)c0)) { + if (isxdigit((guchar)c1) && isxdigit((guchar)c0)) { *(p++) = (xton(c1) * 0x10) + xton(c0); s += 2; } else { |