aboutsummaryrefslogtreecommitdiffstats
path: root/epan/tvbuff.c
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2010-10-30 18:18:12 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2010-10-30 18:18:12 +0000
commitf5d3a16225b9d467b052dfa79fe07a61d6403277 (patch)
treebc1f07c6ce8f5804ee5905dd65a414a16bbea7b1 /epan/tvbuff.c
parentf24037c964768d336a8c780f3890eb30bea86c71 (diff)
Make tvb_strneql()'s size parameter be a size_t. Remove some now-unnecessary casts.
svn path=/trunk/; revision=34725
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 7c2b6e6891..d2ee540faf 100644
--- a/epan/tvbuff.c
+++ b/epan/tvbuff.c
@@ -959,7 +959,7 @@ guint8_pbrk(const guint8* haystack, size_t haystacklen, const guint8 *needles, g
{
gchar tmp[256] = { 0 };
const guint8 *haystack_end;
-
+
while (*needles)
tmp[*needles++] = 1;
@@ -1982,7 +1982,7 @@ tvb_strnlen(tvbuff_t *tvb, const gint offset, const guint maxlength)
* it returns 0 (meaning "equal") and -1 otherwise, otherwise return -1.
*/
gint
-tvb_strneql(tvbuff_t *tvb, const gint offset, const gchar *str, const gint size)
+tvb_strneql(tvbuff_t *tvb, const gint offset, const gchar *str, const size_t size)
{
const guint8 *ptr;
@@ -2572,7 +2572,7 @@ tvb_find_line_end(tvbuff_t *tvb, const gint offset, int len, gint *next_offset,
/*
* Is it a CR?
- */
+ */
if (found_needle == '\r') {
/*
* Yes - is it followed by an LF?