From 38ec1644e68721d6b5afb84dce1684b943b1aee0 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Fri, 19 Aug 2005 19:40:00 +0000 Subject: Add APIs to Wiretap to return the file of the size as supplied by the OS (so if the file's gzipped, it's *NOT* the size of the file after uncompressing), and an approximation of the amount of that data read sequentially so far. Use those for various progress bars and the like. Make the fstat() in the Ascend trace reader directly use wth->fd, as it's inside Wiretap; that gets rid of the last caller of wtap_fd() (as we're no longer directly using fstat() or lseek() in Ethereal), so get rid of wtap_fd(). svn path=/trunk/; revision=15437 --- ringbuffer.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'ringbuffer.c') diff --git a/ringbuffer.c b/ringbuffer.c index 02c66138a2..1400420a68 100644 --- a/ringbuffer.c +++ b/ringbuffer.c @@ -56,10 +56,6 @@ #include #endif -#ifdef HAVE_SYS_STAT_H -#include -#endif - #ifdef HAVE_UNISTD_H #include #endif @@ -69,7 +65,7 @@ #include #include -#include "wiretap/wtap.h" +#include #include "ringbuffer.h" /* Win32 needs the O_BINARY flag for open() */ -- cgit v1.2.3