diff options
author | Jörg Mayer <jmayer@loplof.de> | 2004-02-01 04:54:48 +0000 |
---|---|---|
committer | Jörg Mayer <jmayer@loplof.de> | 2004-02-01 04:54:48 +0000 |
commit | d62f6c67da505b319272a274a05be983889330c0 (patch) | |
tree | 90c1aab32fe443f6c7bb6fe25092eee1740abd19 | |
parent | 0ca3ad93b8f84698b547404c2334e0e3d515a78e (diff) |
Add consts to fix 'cast discards qualifiers from pointer target type'
svn path=/trunk/; revision=9937
-rw-r--r-- | epan/strutil.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/strutil.c b/epan/strutil.c index b275d76612..4d8c8f8aaf 100644 --- a/epan/strutil.c +++ b/epan/strutil.c @@ -1,7 +1,7 @@ /* strutil.c * String utility routines * - * $Id: strutil.c,v 1.16 2004/01/25 16:58:25 jmayer Exp $ + * $Id: strutil.c,v 1.17 2004/02/01 04:54:48 jmayer Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -314,12 +314,12 @@ is_byte_sep(guint8 c) gboolean hex_str_to_bytes(const char *hex_str, GByteArray *bytes) { guint8 val; - guchar *p, *q, *punct; + const guchar *p, *q, *punct; char two_digits[3]; char one_digit[2]; g_byte_array_set_size(bytes, 0); - p = (guchar *)hex_str; + p = (const guchar *)hex_str; while (*p) { q = p+1; if (*q && isxdigit(*p) && isxdigit(*q)) { |