diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 2001-10-26 18:28:17 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 2001-10-26 18:28:17 +0000 |
commit | 6de396c4a889a107de4e937313774effb208cdbe (patch) | |
tree | a82726e3867914409cfb8883ca39d8c99418dd0f /packet-x11.c | |
parent | 038da8730a3cc169e7bec2c5f0aaa268928ca514 (diff) | |
download | wireshark-6de396c4a889a107de4e937313774effb208cdbe.tar.gz wireshark-6de396c4a889a107de4e937313774effb208cdbe.tar.bz2 wireshark-6de396c4a889a107de4e937313774effb208cdbe.zip |
Fix the rest of the signed/unsigned comparison warnings.
svn path=/trunk/; revision=4088
Diffstat (limited to 'packet-x11.c')
-rw-r--r-- | packet-x11.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/packet-x11.c b/packet-x11.c index a03f2133e4..5f47355f63 100644 --- a/packet-x11.c +++ b/packet-x11.c @@ -2,7 +2,7 @@ * Routines for X11 dissection * Copyright 2000, Christophe Tronche <ch.tronche@computer.org> * - * $Id: packet-x11.c,v 1.23 2001/10/04 00:30:23 guy Exp $ + * $Id: packet-x11.c,v 1.24 2001/10/26 18:28:16 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -1043,7 +1043,7 @@ static void stringCopy(char *dest, const char *source, int length) static void listOfString8(tvbuff_t *tvb, int hf, int hf_item, int length) { char *s = NULL; - int allocated = 0; + guint allocated = 0; proto_tree *tt; int i; @@ -1060,7 +1060,7 @@ static void listOfString8(tvbuff_t *tvb, int hf, int hf_item, int length) while(length--) { unsigned l = VALUE8(tvb, cur_offset); - if (allocated < l + 1) { + if (allocated < (l + 1)) { /* g_realloc doesn't work ??? */ g_free(s); s = g_malloc(l + 1); @@ -1103,7 +1103,7 @@ static void string16_with_buffer_preallocated(tvbuff_t *tvb, proto_tree *t, truncated = TRUE; l = STRING16_MAX_DISPLAYED_LENGTH; } - if (*sLength < l + 3) { + if (*sLength < (int) l + 3) { g_free(*s); *s = g_malloc(l + 3); *sLength = l + 3; @@ -1163,7 +1163,7 @@ static void listOfTextItem(tvbuff_t *tvb, int hf, int sizeIs16) proto_tree *ttt; gint8 delta = VALUE8(tvb, cur_offset + 1); if (sizeIs16) l += l; - if (allocated < l + 1) { + if ((unsigned) allocated < l + 1) { /* g_realloc doesn't work ??? */ g_free(s); s = g_malloc(l + 1); |