aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-12-29 19:53:52 +0000
committerGuy Harris <guy@alum.mit.edu>2003-12-29 19:53:52 +0000
commit52ce0b5f48984e50ed3b3656dd2e133daff9dba2 (patch)
treed4fad82bca5c2cc4b14cc90b87dbb02c6880297d /epan
parentb4a05bd27105ddb5cf327ba3f8274b6e9f1f46f0 (diff)
"hex_str_to_bytes()" modifies the GByteArray supplied to it, so don't
mark it as "const". svn path=/trunk/; revision=9474
Diffstat (limited to 'epan')
-rw-r--r--epan/strutil.c4
-rw-r--r--epan/strutil.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/epan/strutil.c b/epan/strutil.c
index fc2dad6326..c3386994ab 100644
--- a/epan/strutil.c
+++ b/epan/strutil.c
@@ -1,7 +1,7 @@
/* strutil.c
* String utility routines
*
- * $Id: strutil.c,v 1.14 2003/12/29 04:06:09 gerald Exp $
+ * $Id: strutil.c,v 1.15 2003/12/29 19:53:52 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -312,7 +312,7 @@ is_byte_sep(guint8 c)
* is_byte_sep() into a byte array.
*/
gboolean
-hex_str_to_bytes(const guchar *hex_str, const GByteArray *bytes) {
+hex_str_to_bytes(const guchar *hex_str, GByteArray *bytes) {
guint8 val;
guchar *p, *q, *punct;
char two_digits[3];
diff --git a/epan/strutil.h b/epan/strutil.h
index fd82d01174..95d1c2e7e4 100644
--- a/epan/strutil.h
+++ b/epan/strutil.h
@@ -1,7 +1,7 @@
/* strutil.h
* String utility definitions
*
- * $Id: strutil.h,v 1.12 2003/12/29 04:06:09 gerald Exp $
+ * $Id: strutil.h,v 1.13 2003/12/29 19:53:52 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -34,7 +34,7 @@ int get_token_len(const guchar *linep, const guchar *lineend,
gchar* format_text(const guchar *line, int len);
gchar* bytes_to_str(const guint8 *, int);
gchar* bytes_to_str_punct(const guint8 *, int, gchar punct);
-gboolean hex_str_to_bytes(const guchar *hex_str, const GByteArray *bytes);
+gboolean hex_str_to_bytes(const guchar *hex_str, GByteArray *bytes);
const guint8 * epan_memmem(const guint8 *haystack, guint haystack_len,
const guint8 *needle, guint needle_len);