diff options
author | Guy Harris <guy@alum.mit.edu> | 1999-09-24 05:49:53 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 1999-09-24 05:49:53 +0000 |
commit | a9c36a4b69526ee098319d31d5930b8678f4974f (patch) | |
tree | 731abbf198b006163c900ae3da97d6b62a2fd0de /wiretap/libpcap.c | |
parent | 702b8f7aed6aed8775d9c28e84d830f6216b8080 (diff) |
Fix it so that it builds with "--disable-zlib".
The "fh" member of a "wtap" structure points to something constructed
from the "fd" member of that structure, so that closing the stream
referred to by "fh" also closes the underlying file descriptor; get rid
of an unnecessary close of "wth->fd".
svn path=/trunk/; revision=720
Diffstat (limited to 'wiretap/libpcap.c')
-rw-r--r-- | wiretap/libpcap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wiretap/libpcap.c b/wiretap/libpcap.c index 4301c01b90..2f22d78154 100644 --- a/wiretap/libpcap.c +++ b/wiretap/libpcap.c @@ -1,6 +1,6 @@ /* libpcap.c * - * $Id: libpcap.c,v 1.19 1999/09/23 05:00:59 guy Exp $ + * $Id: libpcap.c,v 1.20 1999/09/24 05:49:51 guy Exp $ * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@verdict.uthscsa.edu> @@ -25,8 +25,8 @@ #endif #include <stdlib.h> #include <errno.h> -#include "file.h" #include "wtap.h" +#include "file.h" #include "buffer.h" #include "libpcap.h" |