Wireshark mailing list archives

Re: Multiple interfaces capture: Compile errors


From: Joerg Mayer <jmayer () loplof de>
Date: Fri, 5 Aug 2011 17:59:45 +0200

I just tried to "fix" the stuff in main_welcome.c:

Index: main_welcome.c
===================================================================
--- main_welcome.c      (revision 38365)
+++ main_welcome.c      (working copy)
@@ -72,6 +72,9 @@
 #include "airpcap.h"
 #include "airpcap_loader.h"
 #include "airpcap_gui_utils.h"
+#endif
+
+#if defined(HAVE_AIRPCAP) || defined(HAVE_PCAP_REMOTE)
 #include "../image/toolbar/capture_airpcap_16.xpm"
 #endif
 
But this is not really helping:
a) It looks like the code wants to use a wrong icon (airpcap for remote)
b) compilation fails with messages like:
   main_welcome.c:721:25: error: ‘d_interface.remote_opts.remote_host_opts.remote_host’ may be used uninitialized 
in this function
   And this looks genuine to me: There is an assignment to the struct further
   down (no, not a pointer to a struct).

Ciao
    Joerg
-- 
Joerg Mayer                                           <jmayer () loplof de>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe

Current thread: