aboutsummaryrefslogtreecommitdiffstats
path: root/epan/ftypes/ftypes.c
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>2001-10-26 17:29:12 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>2001-10-26 17:29:12 +0000
commit038da8730a3cc169e7bec2c5f0aaa268928ca514 (patch)
tree9ac3b277aca2566a2c2797f7f99d1915530fa089 /epan/ftypes/ftypes.c
parentba9618e60716b536400f2aac50242f55b9492eef (diff)
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/ftypes/ftypes.c')
-rw-r--r--epan/ftypes/ftypes.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/epan/ftypes/ftypes.c b/epan/ftypes/ftypes.c
index d39ba6e03d..fab6d58a91 100644
--- a/epan/ftypes/ftypes.c
+++ b/epan/ftypes/ftypes.c
@@ -1,5 +1,5 @@
/*
- * $Id: ftypes.c,v 1.4 2001/03/02 17:04:25 gram Exp $
+ * $Id: ftypes.c,v 1.5 2001/10/26 17:29:12 gram Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -80,7 +80,6 @@ void
ftype_register(enum ftenum ftype, ftype_t *ft)
{
/* Check input */
- g_assert(ftype >= 0);
g_assert(ftype < FT_NUM_TYPES);
/* Don't re-register. */
@@ -96,7 +95,6 @@ ftype_lookup(enum ftenum ftype)
ftype_t* result;
/* Check input */
- g_assert(ftype >= 0);
g_assert(ftype < FT_NUM_TYPES);
result = type_list[ftype];
@@ -351,7 +349,7 @@ slice_func(gpointer data, gpointer user_data)
/* g_debug("(NEW) start_offset=%d length=%d end_offset=%d",
start_offset, length, end_offset); */
- if (start_offset > field_length || end_offset > field_length) {
+ if (start_offset > (int) field_length || end_offset > (int) field_length) {
slice_data->slice_failure = TRUE;
return;
}