aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/etherpeek.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2001-07-13 00:55:58 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2001-07-13 00:55:58 +0000
commit0f480c2f4a00135c5acaa1250956a48fa328fdd7 (patch)
tree7296d508f19728911cce7937d426784768575b2e /wiretap/etherpeek.c
parent90f6a15b54e4030ca5d5624e88f00b0d2ea79aed (diff)
From Joerg Mayer:
* gcc 3.0 warning fixes: - text2pcap.c: The number of characters to scan should probably not be 0 - wiretap/csids.c: using preincrement on a variable used on both sides of an assignment might be undefined by the C99(?) standard * turn on additional warnings for epan and wiretap too - epan/configure.in - wiretap/configure.in * Fix some warnings (missing includes, signed/unsigned, missing initializers) found by turning on the warnings - all other files :-) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3709 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'wiretap/etherpeek.c')
-rw-r--r--wiretap/etherpeek.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/wiretap/etherpeek.c b/wiretap/etherpeek.c
index 5a6181b55f..32102eba20 100644
--- a/wiretap/etherpeek.c
+++ b/wiretap/etherpeek.c
@@ -2,7 +2,7 @@
* Routines for opening etherpeek files
* Copyright (c) 2001, Daniel Thompson <d.thompson@gmx.net>
*
- * $Id: etherpeek.c,v 1.3 2001/03/10 06:33:57 guy Exp $
+ * $Id: etherpeek.c,v 1.4 2001/07/13 00:55:58 guy Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@xiexie.org>
@@ -210,7 +210,7 @@ static gboolean etherpeek_read_m7(wtap *wth, int *err, int *data_offset)
{
etherpeek_m7_packet_t ep_pkt;
double t;
- int i;
+ unsigned int i;
g_assert(sizeof(ep_pkt) == ETHERPEEK_M7_PKT_SIZE);
wtap_file_read_expected_bytes(&ep_pkt, sizeof(ep_pkt), wth->fh, err);
@@ -265,7 +265,7 @@ static gboolean etherpeek_read_m7(wtap *wth, int *err, int *data_offset)
static gboolean etherpeek_read_m56(wtap *wth, int *err, int *data_offset)
{
etherpeek_m56_packet_t ep_pkt;
- int i;
+ unsigned int i;
g_assert(sizeof(ep_pkt) == ETHERPEEK_M56_PKT_SIZE);
wtap_file_read_expected_bytes(&ep_pkt, sizeof(ep_pkt), wth->fh, err);