aboutsummaryrefslogtreecommitdiffstats
path: root/tethereal.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-12-31 22:42:45 +0000
committerGuy Harris <guy@alum.mit.edu>2002-12-31 22:42:45 +0000
commit99db33699965cf53ccf4c516de908da175c210c3 (patch)
tree583e4414ee699fc413d9fb6b0cfcc5fa226a0bf1 /tethereal.c
parent3e822a85386f3bd413c20333c72a5d51dfbc4fd2 (diff)
downloadwireshark-99db33699965cf53ccf4c516de908da175c210c3.tar.gz
wireshark-99db33699965cf53ccf4c516de908da175c210c3.tar.bz2
wireshark-99db33699965cf53ccf4c516de908da175c210c3.zip
One more "#ifdef" (well, #ifndef, actually) for _WIN32.
svn path=/trunk/; revision=6834
Diffstat (limited to 'tethereal.c')
-rw-r--r--tethereal.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/tethereal.c b/tethereal.c
index 9978950b80..0c81b2b56e 100644
--- a/tethereal.c
+++ b/tethereal.c
@@ -1,6 +1,6 @@
/* tethereal.c
*
- * $Id: tethereal.c,v 1.174 2002/12/31 22:01:48 guy Exp $
+ * $Id: tethereal.c,v 1.175 2002/12/31 22:42:45 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -1306,12 +1306,15 @@ capture(int out_file_type)
/* If we got an error while capturing, report it. */
if (inpkts < 0) {
+#ifndef _WIN32
if (ld.from_pipe) {
if (ld.pipe_err == PIPERR) {
fprintf(stderr, "tethereal: Error while capturing packets: %s\n",
errmsg);
}
- } else {
+ } else
+#endif
+ {
fprintf(stderr, "tethereal: Error while capturing packets: %s\n",
pcap_geterr(ld.pch));
}