Ethereal-dev: [Ethereal-dev] A few more signed/unsigned fixes
Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.
From: Jörg Mayer <jmayer@xxxxxxxxx>
Date: Wed, 20 Jun 2001 00:37:33 +0200
-- Jörg Mayer <jmayer@xxxxxxxxx> Signature fault, brain dumped
Changelog: <jmayer@xxxxxxxxx> Fix a few more signed/unsigned warnings Index: ethereal/editcap.c =================================================================== RCS file: /cvsroot/ethereal/editcap.c,v retrieving revision 1.14 diff -u -u -r1.14 editcap.c --- editcap.c 2001/04/20 22:35:19 1.14 +++ editcap.c 2001/06/19 22:36:48 @@ -53,7 +53,7 @@ static int out_file_type = WTAP_FILE_PCAP; /* default to "libpcap" */ static int out_frame_type = -2; /* Leave frame type alone */ static int verbose = 0; /* Not so verbose */ -static int snaplen = 0; /* No limit */ +static unsigned int snaplen = 0; /* No limit */ /* Add a selection item, a simple parser for now */ Index: ethereal/file.c =================================================================== RCS file: /cvsroot/ethereal/file.c,v retrieving revision 1.240 diff -u -u -r1.240 file.c --- file.c 2001/06/08 08:50:49 1.240 +++ file.c 2001/06/19 22:36:50 @@ -893,7 +893,7 @@ gboolean stop_flag; guint32 progbar_quantum; guint32 progbar_nextstep; - int count; + unsigned int count; frame_data *selected_frame; int selected_row; int row; @@ -1282,7 +1282,7 @@ gboolean stop_flag; guint32 progbar_quantum; guint32 progbar_nextstep; - int count; + unsigned int count; int row; int i; GtkStyle *pl_style; @@ -1389,7 +1389,7 @@ gboolean stop_flag; guint32 progbar_quantum; guint32 progbar_nextstep; - int count; + unsigned int count; proto_tree *protocol_tree; gboolean frame_matched; int row; Index: ethereal/packet-ieee80211.c =================================================================== RCS file: /cvsroot/ethereal/packet-ieee80211.c,v retrieving revision 1.23 diff -u -u -r1.23 packet-ieee80211.c --- packet-ieee80211.c 2001/06/18 02:17:47 1.23 +++ packet-ieee80211.c 2001/06/19 22:36:52 @@ -558,7 +558,8 @@ const guint8 *tag_info_ptr; const guint8 *tag_data_ptr; guint32 tag_no, tag_len; - int i, n; + unsigned int i; + int n; char out_buff[SHORT_STR]; Index: ethereal/packet-ip.c =================================================================== RCS file: /cvsroot/ethereal/packet-ip.c,v retrieving revision 1.137 diff -u -u -r1.137 packet-ip.c --- packet-ip.c 2001/06/18 02:17:47 1.137 +++ packet-ip.c 2001/06/19 22:36:53 @@ -621,7 +621,7 @@ u_char opt; const ip_tcp_opt *optp; opt_len_type len_type; - int optlen; + unsigned int optlen; char *name; char name_str[7+1+1+2+2+1+1]; /* "Unknown (0x%02x)" */ void (*dissect)(const struct ip_tcp_opt *, tvbuff_t *, @@ -792,7 +792,8 @@ proto_tree *ip_tree = NULL, *field_tree; proto_item *ti, *tf; int offset = 0; - guint hlen, optlen, len, payload_len, reported_payload_len, padding; + guint hlen, optlen, len, payload_len, reported_payload_len; + int padding; guint16 flags; guint8 nxt; guint16 ipsum; Index: ethereal/proto_hier_stats.c =================================================================== RCS file: /cvsroot/ethereal/proto_hier_stats.c,v retrieving revision 1.3 diff -u -u -r1.3 proto_hier_stats.c --- proto_hier_stats.c 2001/03/24 02:07:20 1.3 +++ proto_hier_stats.c 2001/06/19 22:36:54 @@ -155,7 +155,7 @@ gboolean stop_flag; guint32 progbar_quantum; guint32 progbar_nextstep; - int count; + unsigned int count; /* Initialize the data */ ps = g_new(ph_stats_t, 1); Index: ethereal/epan/ftypes/ftype-time.c =================================================================== RCS file: /cvsroot/ethereal/epan/ftypes/ftype-time.c,v retrieving revision 1.8 diff -u -u -r1.8 ftype-time.c --- ftype-time.c 2001/06/18 01:42:24 1.8 +++ ftype-time.c 2001/06/19 22:36:55 @@ -263,6 +263,8 @@ cmp_ge, cmp_lt, cmp_le, + NULL, + NULL }; static ftype_t reltime_type = { "FT_RELATIVE_TIME", @@ -286,6 +288,8 @@ cmp_ge, cmp_lt, cmp_le, + NULL, + NULL }; ftype_register(FT_ABSOLUTE_TIME, &abstime_type);
- Follow-Ups:
- Re: [Ethereal-dev] A few more signed/unsigned fixes
- From: Guy Harris
- Re: [Ethereal-dev] A few more signed/unsigned fixes
- Prev by Date: Re: AW: [Ethereal-dev] Ethereal core enhancements
- Next by Date: Re: [Ethereal-dev] A few more signed/unsigned fixes
- Previous by thread: RE: AW: [Ethereal-dev] Ethereal core enhancements
- Next by thread: Re: [Ethereal-dev] A few more signed/unsigned fixes
- Index(es):