aboutsummaryrefslogtreecommitdiffstats
path: root/epan/tvbuff.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-11-11 19:55:48 +0000
committerGuy Harris <guy@alum.mit.edu>2000-11-11 19:55:48 +0000
commitb9d2dd715136c9e19935269a479758bf7e015a45 (patch)
tree0c06da2ee5f52a5f2e39ffbea3881bc336da0388 /epan/tvbuff.c
parent00e5867b10ccfaa074a617a2344275e6a1c46a08 (diff)
Make the string-to-compare-with arguments to "tvb_strneql()" and
"tvb_strncaseeql()" "const guint8 *", so that you can pass them pointers to "const". svn path=/trunk/; revision=2611
Diffstat (limited to 'epan/tvbuff.c')
-rw-r--r--epan/tvbuff.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/tvbuff.c b/epan/tvbuff.c
index 0ac17938ff..4c689ba99f 100644
--- a/epan/tvbuff.c
+++ b/epan/tvbuff.c
@@ -9,7 +9,7 @@
* the data of a backing tvbuff, or can be a composite of
* other tvbuffs.
*
- * $Id: tvbuff.c,v 1.5 2000/11/10 09:15:57 guy Exp $
+ * $Id: tvbuff.c,v 1.6 2000/11/11 19:55:48 guy Exp $
*
* Copyright (c) 2000 by Gilbert Ramirez <gram@xiexie.org>
*
@@ -1125,7 +1125,7 @@ tvb_strnlen(tvbuff_t *tvb, gint offset, guint maxlength)
/* Call strncmp after checking if enough chars left, otherwise return -1 */
gint
-tvb_strneql(tvbuff_t *tvb, gint offset, guint8 *str, gint size)
+tvb_strneql(tvbuff_t *tvb, gint offset, const guint8 *str, gint size)
{
guint8 *ptr;
@@ -1149,7 +1149,7 @@ tvb_strneql(tvbuff_t *tvb, gint offset, guint8 *str, gint size)
/* Call strncasecmp after checking if enough chars left, otherwise return -1 */
gint
-tvb_strncaseeql(tvbuff_t *tvb, gint offset, guint8 *str, gint size)
+tvb_strncaseeql(tvbuff_t *tvb, gint offset, const guint8 *str, gint size)
{
guint8 *ptr;