diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-02-01 21:52:16 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-02-01 21:52:16 +0000 |
commit | ebf6ae7cf671fa71fb85db6df5db6dec570016d9 (patch) | |
tree | 769f6a6067c32465da260b55390698842d0bd09e /epan/ftypes | |
parent | c3ad47d04c03fd7c62dd9e06a4f34c74b23a7c20 (diff) |
Make some pointers "guchar" pointers, so that characters extracted from
strings are unsigned, so that we can hand them to "isXXX()" macros
without GCC warning us that an array subscript is "char" (as in "if this
is a character with the 8th bit set, you may not get the answer you
think you should from 'isXXX()'").
svn path=/trunk/; revision=2972
Diffstat (limited to 'epan/ftypes')
-rw-r--r-- | epan/ftypes/ftype-bytes.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/ftypes/ftype-bytes.c b/epan/ftypes/ftype-bytes.c index c0029d942c..824caf718e 100644 --- a/epan/ftypes/ftype-bytes.c +++ b/epan/ftypes/ftype-bytes.c @@ -1,5 +1,5 @@ /* - * $Id: ftype-bytes.c,v 1.2 2001/02/01 20:31:21 gram Exp $ + * $Id: ftype-bytes.c,v 1.3 2001/02/01 21:52:16 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -102,14 +102,14 @@ val_from_string(fvalue_t *fv, char *s, LogFunc log) { GByteArray *bytes; guint8 val; - char *p, *q, *punct; + guchar *p, *q, *punct; char two_digits[3]; char one_digit[2]; gboolean fail = FALSE; bytes = g_byte_array_new(); - p = s; + p = (guchar *)s; while (*p) { q = p+1; if (*q && isxdigit(*p) && isxdigit(*q)) { |