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/wtap.c | |
parent | 82a553e9c9275c9074b087b63e976ef63259dba9 (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 :-)
svn path=/trunk/; revision=3709
Diffstat (limited to 'wiretap/wtap.c')
-rw-r--r-- | wiretap/wtap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wiretap/wtap.c b/wiretap/wtap.c index 63475d73b0..db9bbae293 100644 --- a/wiretap/wtap.c +++ b/wiretap/wtap.c @@ -1,6 +1,6 @@ /* wtap.c * - * $Id: wtap.c,v 1.53 2001/07/05 00:34:42 guy Exp $ + * $Id: wtap.c,v 1.54 2001/07/13 00:55:58 guy Exp $ * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@xiexie.org> @@ -55,7 +55,7 @@ wtap_file_encap(wtap *wth) } /* Table of the encapsulation types we know about. */ -const static struct encap_type_info { +static const struct encap_type_info { const char *name; const char *short_name; } encap_table[WTAP_NUM_ENCAP_TYPES] = { @@ -183,7 +183,7 @@ const char *wtap_strerror(int err) { static char errbuf[128]; - int wtap_errlist_index; + unsigned int wtap_errlist_index; if (err < 0) { #ifdef HAVE_LIBZ |