* Don't declare a used arg as unused.
authortuexen <tuexen@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 17 May 2011 19:51:55 +0000 (19:51 +0000)
committertuexen <tuexen@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 17 May 2011 19:51:55 +0000 (19:51 +0000)
* 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

wiretap/wtap.c

index e494a9e7576a278da9c632562a8a0208c832b5bd..27125f5247cf28204f014cafe8dd80d76fc4f9b9 100644 (file)
@@ -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) {