diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-07-13 00:55:58 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-07-13 00:55:58 +0000 |
commit | f7b50ca7544eb3776486375fb15b416a5e88d87b (patch) | |
tree | 7296d508f19728911cce7937d426784768575b2e /wiretap/libpcap.c | |
parent | 82a553e9c9275c9074b087b63e976ef63259dba9 (diff) | |
download | wireshark-f7b50ca7544eb3776486375fb15b416a5e88d87b.tar.gz wireshark-f7b50ca7544eb3776486375fb15b416a5e88d87b.tar.bz2 wireshark-f7b50ca7544eb3776486375fb15b416a5e88d87b.zip |
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 :-)
svn path=/trunk/; revision=3709
Diffstat (limited to 'wiretap/libpcap.c')
-rw-r--r-- | wiretap/libpcap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wiretap/libpcap.c b/wiretap/libpcap.c index b85d518e38..294bb95d66 100644 --- a/wiretap/libpcap.c +++ b/wiretap/libpcap.c @@ -1,6 +1,6 @@ /* libpcap.c * - * $Id: libpcap.c,v 1.48 2001/03/15 09:11:03 guy Exp $ + * $Id: libpcap.c,v 1.49 2001/07/13 00:55:58 guy Exp $ * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@xiexie.org> @@ -867,7 +867,7 @@ libpcap_close(wtap *wth) int wtap_pcap_encap_to_wtap_encap(int encap) { - int i; + unsigned int i; for (i = 0; i < NUM_PCAP_ENCAPS; i++) { if (pcap_to_wtap_map[i].dlt_value == encap) @@ -878,7 +878,7 @@ int wtap_pcap_encap_to_wtap_encap(int encap) static int wtap_wtap_encap_to_pcap_encap(int encap) { - int i; + unsigned int i; /* * Special-case WTAP_ENCAP_FDDI and WTAP_ENCAP_FDDI_BITSWAPPED; |