diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 1999-02-12 16:26:09 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 1999-02-12 16:26:09 +0000 |
commit | bba66b6f0f59c744c9a16a45fc59be40544a47b1 (patch) | |
tree | 59dcd6e2c461018330889296baff36d481ee302a /wiretap | |
parent | 10d6bc09967bfc1afbb601f9cca48b430f032d7e (diff) | |
download | wireshark-bba66b6f0f59c744c9a16a45fc59be40544a47b1.tar.gz wireshark-bba66b6f0f59c744c9a16a45fc59be40544a47b1.tar.bz2 wireshark-bba66b6f0f59c744c9a16a45fc59be40544a47b1.zip |
Change to wtap.c switch() statement to allow compilation under IBM's C compiler.
It didn't like an empty default case. And <time.h> was forgotten in netmon.c
svn path=/trunk/; revision=188
Diffstat (limited to 'wiretap')
-rw-r--r-- | wiretap/netmon.c | 5 | ||||
-rw-r--r-- | wiretap/wtap.c | 6 |
2 files changed, 6 insertions, 5 deletions
diff --git a/wiretap/netmon.c b/wiretap/netmon.c index f6cf8b57fa..3c7eb4b7b6 100644 --- a/wiretap/netmon.c +++ b/wiretap/netmon.c @@ -1,6 +1,6 @@ /* netmon.c * - * $Id: netmon.c,v 1.2 1999/01/27 14:54:09 gram Exp $ + * $Id: netmon.c,v 1.3 1999/02/12 16:26:09 gram Exp $ * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@verdict.uthscsa.edu> @@ -20,9 +20,10 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ +#include <netinet/in.h> +#include <time.h> #include "wtap.h" #include "netmon.h" -#include <netinet/in.h> /* The file at * diff --git a/wiretap/wtap.c b/wiretap/wtap.c index 0378e20855..28f34b50e9 100644 --- a/wiretap/wtap.c +++ b/wiretap/wtap.c @@ -1,6 +1,6 @@ /* wtap.c * - * $Id: wtap.c,v 1.5 1999/01/08 17:24:01 gram Exp $ + * $Id: wtap.c,v 1.6 1999/02/12 16:26:09 gram Exp $ * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@verdict.uthscsa.edu> @@ -58,8 +58,8 @@ void wtap_close(wtap *wth) g_free(wth->capture.ngsniffer); break; - default: - /* nothing */ + /* default: + nothing */ } fclose(wth->fh); |