aboutsummaryrefslogtreecommitdiffstats
path: root/file.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-07-05 00:34:42 +0000
committerGuy Harris <guy@alum.mit.edu>2001-07-05 00:34:42 +0000
commit537d308abee89c938a51040c7315a0dda62c091f (patch)
tree2af1d1f3e7ff5dab230520d5f70c0c4d69e2d38a /file.h
parentaf5c56797852c055de9bb261c87298e3c8f4cde7 (diff)
downloadwireshark-537d308abee89c938a51040c7315a0dda62c091f.tar.gz
wireshark-537d308abee89c938a51040c7315a0dda62c091f.tar.bz2
wireshark-537d308abee89c938a51040c7315a0dda62c091f.zip
"open_cap_file()" in Ethereal and Tethereal don't use the FILE_T they
get from calling "wtap_file()", so get rid of the call and the (otherwise unused) variable to which its result gets assigned. That lets us get rid of "wtap_file()" in Wiretap. It also lets us get rid of the include of "zlib.h" in "file.h"; the #defines of "file_open()", "filed_open()", and "file_close()" are also unnecessary, so we get rid of those as well. However, that means we need to include <zlib.h> in "gtk/main.c" and "tethereal.c", so that the version number of libz is defined and can show up in the version string. svn path=/trunk/; revision=3652
Diffstat (limited to 'file.h')
-rw-r--r--file.h15
1 files changed, 1 insertions, 14 deletions
diff --git a/file.h b/file.h
index ea3e1bd0f1..2c359ea98c 100644
--- a/file.h
+++ b/file.h
@@ -1,7 +1,7 @@
/* file.h
* Definitions for file structures and routines
*
- * $Id: file.h,v 1.83 2001/06/05 07:38:33 guy Exp $
+ * $Id: file.h,v 1.84 2001/07/05 00:34:39 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -35,19 +35,6 @@
#include <errno.h>
#include <epan.h>
-#ifdef HAVE_LIBZ
-#include "zlib.h"
-#define FILE_T gzFile
-#define file_open gzopen
-#define filed_open gzdopen
-#define file_close gzclose
-#else /* No zLib */
-#define FILE_T FILE *
-#define file_open fopen
-#define filed_open fdopen
-#define file_close fclose
-#endif /* HAVE_LIBZ */
-
/* Current state of file. */
typedef enum {
FILE_CLOSED, /* No file open */