aboutsummaryrefslogtreecommitdiffstats
path: root/file.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-11-18 21:04:54 +0000
committerGuy Harris <guy@alum.mit.edu>1999-11-18 21:04:54 +0000
commit1ecbfc0619ba3ae5ca08865fae2e4f879082ce13 (patch)
tree699d71180346c7a648147ff48486eb4b89364341 /file.h
parent61ba58ac8372171e2aa0acf3af78c7afb3e5a0e6 (diff)
Clean up some ANSI C nits pointed out by "gcc -pedantic".
svn path=/trunk/; revision=1060
Diffstat (limited to 'file.h')
-rw-r--r--file.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/file.h b/file.h
index 839af0855f..4443e6704c 100644
--- a/file.h
+++ b/file.h
@@ -1,7 +1,7 @@
/* file.h
* Definitions for file structures and routines
*
- * $Id: file.h,v 1.52 1999/11/08 01:03:32 guy Exp $
+ * $Id: file.h,v 1.53 1999/11/18 21:04:54 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -60,12 +60,6 @@
#define file_read(buf, bsize, count, file) gzread((file),(buf),((count)*(bsize)))
#define file_write(buf, bsize, count, file) gzwrite((file),(buf),((count)*(bsize)))
#define file_close gzclose
-static inline int file_error(void *fh) {
- int errnum;
- gzerror(fh, &errnum);
- if (errnum<0) return errnum;
- return 0;
-}
#else /* No zLib */
#define FILE_T FILE *
@@ -75,7 +69,6 @@ static inline int file_error(void *fh) {
#define file_read fread
#define file_write fwrite
#define file_close fclose
-#define file_error ferror
#endif /* HAVE_LIBZ */
typedef struct bpf_program bpf_prog;