Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: [Wireshark-dev] use "else" instead of "ifndef _WIN32"

From: Toralf Förster <toralf.foerster@xxxxxx>
Date: Sun, 11 Jan 2009 15:07:16 +0100
Hi,

I'm wondering, why within dumpcap the ifdef _WIN32 is handle in 2 different 
ways within the same source file or - OTOH - should the patch below be 
applied  ? :

tfoerste@n22 ~/devel/wireshark $ svn diff --diff-cmd diff dumpcap.c
Index: dumpcap.c
===================================================================
--- dumpcap.c   (revision 27209)
+++ dumpcap.c   (working copy)
@@ -2332,10 +2332,9 @@

 #ifdef _WIN32
   WSADATA              wsaData;
-#endif  /* _WIN32 */
-#ifndef _WIN32
+#else
   struct sigaction action, oldaction;
-#endif
+#endif  /* _WIN32 */

   gboolean             start_capture = TRUE;
   gboolean             stats_known;



-- 
MfG/Sincerely

Toralf Förster
pgp finger print: 7B1A 07F4 EC82 0F90 D4C2 8936 872A E508 7DB6 9DA3

Attachment: signature.asc
Description: This is a digitally signed message part.