Wireshark-dev: Re: [Wireshark-dev] Multiple interfaces capture: Compile errors
From: Michael Tüxen <Michael.Tuexen@xxxxxxxxxxxxxxxxx>
Date: Fri, 5 Aug 2011 19:43:16 +0200
On Aug 5, 2011, at 5:59 PM, Joerg Mayer wrote:

> 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)
I committed your fix in r38369. Since we have no icon for remote interfaces
and I'm not the right person to create one, use the airpcap one.

If anyone comes up with an icon for remote interfaces, feel free to use it...
> 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).
I think I fixed this problem in r38368.

I hope it compiles now for you...

Best regards
Michael
> 
> Ciao
>    Joerg
> -- 
> Joerg Mayer                                           <jmayer@xxxxxxxxx>
> 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@xxxxxxxxxxxxx>
> Archives:    http://www.wireshark.org/lists/wireshark-dev
> Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
>             mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe