One more "#ifdef" (well, #ifndef, actually) for _WIN32.
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 31 Dec 2002 22:42:45 +0000 (22:42 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 31 Dec 2002 22:42:45 +0000 (22:42 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6834 f5534014-38df-0310-8fa8-9805f1628bb7

tethereal.c

index 9978950b80414785dae0f22d3ca2e44c443185e9..0c81b2b56e3fd8717f04b1be237bfab3763ed231 100644 (file)
@@ -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));
     }