diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 2001-10-26 17:29:12 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 2001-10-26 17:29:12 +0000 |
commit | 038da8730a3cc169e7bec2c5f0aaa268928ca514 (patch) | |
tree | 9ac3b277aca2566a2c2797f7f99d1915530fa089 /epan/tvbuff.h | |
parent | ba9618e60716b536400f2aac50242f55b9492eef (diff) | |
download | wireshark-038da8730a3cc169e7bec2c5f0aaa268928ca514.tar.gz |
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
Diffstat (limited to 'epan/tvbuff.h')
-rw-r--r-- | epan/tvbuff.h | 6 |
1 files changed, 3 insertions, 3 deletions
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 <gram@xiexie.org> * @@ -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. |