aboutsummaryrefslogtreecommitdiffstats
path: root/text2pcap.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-07-13 00:55:58 +0000
committerGuy Harris <guy@alum.mit.edu>2001-07-13 00:55:58 +0000
commitf7b50ca7544eb3776486375fb15b416a5e88d87b (patch)
tree7296d508f19728911cce7937d426784768575b2e /text2pcap.c
parent82a553e9c9275c9074b087b63e976ef63259dba9 (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 'text2pcap.c')
-rw-r--r--text2pcap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/text2pcap.c b/text2pcap.c
index 17508a172e..dd089a39b3 100644
--- a/text2pcap.c
+++ b/text2pcap.c
@@ -6,7 +6,7 @@
*
* (c) Copyright 2001 Ashok Narayanan <ashokn@cisco.com>
*
- * $Id: text2pcap.c,v 1.2 2001/05/21 03:17:14 guy Exp $
+ * $Id: text2pcap.c,v 1.3 2001/07/13 00:55:52 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -622,7 +622,7 @@ parse_options (int argc, char *argv[])
break;
case 'e':
hdr_ethernet = TRUE;
- if (!optarg || sscanf(optarg, "%0lx", &hdr_ethernet_proto) < 1) {
+ if (!optarg || sscanf(optarg, "%lx", &hdr_ethernet_proto) < 1) {
fprintf(stderr, "Bad argument for '-e': %s\n",
optarg ? optarg : "");
help(argv[0]);