diff options
author | Michael Tüxen <tuexen@fh-muenster.de> | 2011-05-17 19:51:55 +0000 |
---|---|---|
committer | Michael Tüxen <tuexen@fh-muenster.de> | 2011-05-17 19:51:55 +0000 |
commit | a385b7c9f34e82613020789208f24a52a56c8a30 (patch) | |
tree | 042a586c57b31c01853a4da4bed978f14834ca96 | |
parent | 11dec46275d7d45116c960362e431d9944395179 (diff) |
* Don't declare a used arg as unused.
* Really clear the EOF flag. This fixes a bug where
tshark is not able to do a live capture from a pcapng
file.
svn path=/trunk/; revision=37207
-rw-r--r-- | wiretap/wtap.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/wiretap/wtap.c b/wiretap/wtap.c index e494a9e757..27125f5247 100644 --- a/wiretap/wtap.c +++ b/wiretap/wtap.c @@ -679,10 +679,9 @@ wtap_close(wtap *wth) } void -wtap_cleareof(wtap *wth _U_) { +wtap_cleareof(wtap *wth) { /* Reset EOF */ - if (file_eof(wth->fh)) - file_clearerr(wth->fh); + file_clearerr(wth->fh); } void wtap_set_cb_new_ipv4(wtap *wth, wtap_new_ipv4_callback_t add_new_ipv4) { |