From f7b50ca7544eb3776486375fb15b416a5e88d87b Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Fri, 13 Jul 2001 00:55:58 +0000 Subject: 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 --- wiretap/file.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'wiretap/file.c') 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 @@ -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); -- cgit v1.2.3