From 038da8730a3cc169e7bec2c5f0aaa268928ca514 Mon Sep 17 00:00:00 2001 From: Gilbert Ramirez Date: Fri, 26 Oct 2001 17:29:12 +0000 Subject: Fix some signed/unsigned comparison warnings. In the case of tvbuff.h, there were 2 functions which accepted 'maxlength' == -1, but the function prototypes had maxlength as a guint --- fixed. svn path=/trunk/; revision=4087 --- epan/tvbuff.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'epan/tvbuff.h') diff --git a/epan/tvbuff.h b/epan/tvbuff.h index 794c998a7f..00e713e572 100644 --- a/epan/tvbuff.h +++ b/epan/tvbuff.h @@ -9,7 +9,7 @@ * the data of a backing tvbuff, or can be a composite of * other tvbuffs. * - * $Id: tvbuff.h,v 1.14 2001/07/02 07:11:40 guy Exp $ + * $Id: tvbuff.h,v 1.15 2001/10/26 17:29:09 gram Exp $ * * Copyright (c) 2000 by Gilbert Ramirez * @@ -277,14 +277,14 @@ const guint8* tvb_get_ptr(tvbuff_t*, gint offset, gint length); * Will not throw an exception, even if maxlength exceeds boundary of tvbuff; * in that case, -1 will be returned if the boundary is reached before * finding needle. */ -gint tvb_find_guint8(tvbuff_t*, gint offset, guint maxlength, guint8 needle); +gint tvb_find_guint8(tvbuff_t*, gint offset, gint maxlength, guint8 needle); /* Find first occurence of any of the needles in tvbuff, starting at offset. * Searches at most maxlength number of bytes. Returns the offset of the * found needle, or -1 if not found. Will not throw an exception, even if * maxlength exceeds boundary of tvbuff; in that case, -1 will be returned if * the boundary is reached before finding needle. */ -gint tvb_pbrk_guint8(tvbuff_t *, gint offset, guint maxlength, guint8 *needles); +gint tvb_pbrk_guint8(tvbuff_t *, gint offset, gint maxlength, guint8 *needles); /* Find size of stringz (NUL-terminated string) by looking for terminating * NUL. The size of the string includes the terminating NUL. -- cgit v1.2.1