aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/ascend.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 /wiretap/ascend.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 'wiretap/ascend.c')
-rw-r--r--wiretap/ascend.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wiretap/ascend.c b/wiretap/ascend.c
index 7155815403..04a34783cf 100644
--- a/wiretap/ascend.c
+++ b/wiretap/ascend.c
@@ -1,6 +1,6 @@
/* ascend.c
*
- * $Id: ascend.c,v 1.23 2001/03/10 06:33:57 guy Exp $
+ * $Id: ascend.c,v 1.24 2001/07/13 00:55:57 guy Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@xiexie.org>
@@ -116,7 +116,7 @@ static void ascend_close(wtap *wth);
static int ascend_seek(wtap *wth, int max_seek)
{
int byte, bytes_read = 0, date_off = -1, cur_off, packet_off;
- int x_level = 0, r_level = 0, w1_level = 0, w2_level = 0;
+ unsigned int r_level = 0, x_level = 0, w1_level = 0, w2_level = 0;
while (((byte = file_getc(wth->fh)) != EOF) && bytes_read < max_seek) {
if (byte == ascend_xmagic[x_level]) {