"hex_str_to_bytes()" modifies the GByteArray supplied to it, so don't

mark it as "const".

svn path=/trunk/; revision=9474
This commit is contained in:
Guy Harris 2003-12-29 19:53:52 +00:00
parent b4a05bd271
commit 52ce0b5f48
2 changed files with 4 additions and 4 deletions

View File

@ -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];

View File

@ -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);