From: R.E. Wolff Date: Thu, 13 Feb 2020 08:20:12 +0000 (+0100) Subject: More compilation warning fixes from obouizi X-Git-Tag: v0.94~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b402c6dc6dba64b9eae46e0029403845090fcb34;p=thirdparty%2Fmtr.git More compilation warning fixes from obouizi --- diff --git a/packet/probe.c b/packet/probe.c index c2b4a55..48f11b6 100644 --- a/packet/probe.c +++ b/packet/probe.c @@ -318,8 +318,12 @@ int find_source_addr( int sock; int len; struct sockaddr_storage dest_with_port; +#ifdef __linux__ + // The Linux code needs these. struct sockaddr_in *srcaddr4; struct sockaddr_in6 *srcaddr6; +#endif + dest_with_port = *destaddr; diff --git a/packet/probe_cygwin.c b/packet/probe_cygwin.c index 79e9fdb..039e2e3 100644 --- a/packet/probe_cygwin.c +++ b/packet/probe_cygwin.c @@ -483,7 +483,7 @@ DWORD WINAPI icmp_service_thread(LPVOID param) { HANDLE event; BOOL success; bool read_pending; - int read_count; + DWORD read_count; int err; /*