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/file.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/file.c')
-rw-r--r-- | wiretap/file.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wiretap/file.c b/wiretap/file.c index 6eba00d993..62b5dcdbea 100644 --- a/wiretap/file.c +++ b/wiretap/file.c @@ -1,6 +1,6 @@ /* file.c * - * $Id: file.c,v 1.66 2001/03/10 06:33:57 guy Exp $ + * $Id: file.c,v 1.67 2001/07/13 00:55:58 guy Exp $ * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@xiexie.org> @@ -149,7 +149,7 @@ wtap* wtap_open_offline(const char *filename, int *err, gboolean do_random) { struct stat statb; wtap *wth; - int i; + unsigned int i; /* First, make sure the file is valid */ if (stat(filename, &statb) < 0) { @@ -252,7 +252,7 @@ success: } /* Table of the file types we know about. */ -const static struct file_type_info { +static const struct file_type_info { const char *name; const char *short_name; int (*can_write_encap)(int, int); |