diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-03-17 09:24:41 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-03-17 09:24:41 +0000 |
commit | 40f3136dbf0c3e15438ace1ea0d57e5f13bb05b0 (patch) | |
tree | ded822f752afccd8debe4386ce5c314d0106a2ff /wiretap | |
parent | 8218536f0304e59eee58c23f1bed5463234cb5dd (diff) |
"esc_read()" is passed a FILE_T, not a FILE_T * - a FILE_T is a pointer
(a FILE * if zlib isn't used, a gzFile if zlib is used).
Use "size_t" for the amount of data to read in
"eyesdn_check_file_type()", to squelch signed vs. unsigned warnings.
svn path=/trunk/; revision=10392
Diffstat (limited to 'wiretap')
-rw-r--r-- | wiretap/eyesdn.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wiretap/eyesdn.c b/wiretap/eyesdn.c index 9c0b5e36eb..cd40520043 100644 --- a/wiretap/eyesdn.c +++ b/wiretap/eyesdn.c @@ -1,6 +1,6 @@ /* eyesdn.c * - * $Id: eyesdn.c,v 1.5 2004/03/03 22:24:51 guy Exp $ + * $Id: eyesdn.c,v 1.6 2004/03/17 09:24:41 guy Exp $ * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu> @@ -57,7 +57,7 @@ */ -static int esc_read(guint8 *buf, int len, FILE_T *fh) +static int esc_read(guint8 *buf, int len, FILE_T fh) { int i; int value; @@ -141,7 +141,7 @@ static long eyesdn_seek_next_packet(wtap *wth, int *err) static gboolean eyesdn_check_file_type(wtap *wth, int *err) { char buf[EYESDN_HDR_MAGIC_SIZE]; - int i, reclen; + size_t i, reclen; guint level; char byte; |