From: tuexen Date: Tue, 17 May 2011 19:51:55 +0000 (+0000) Subject: * Don't declare a used arg as unused. X-Git-Url: http://git.samba.org/samba.git/?p=obnox%2Fwireshark%2Fwip.git;a=commitdiff_plain;h=5709c96bb1664b679d1da277c1b84384d634ccdc * 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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37207 f5534014-38df-0310-8fa8-9805f1628bb7 --- 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) {