From b402c6dc6dba64b9eae46e0029403845090fcb34 Mon Sep 17 00:00:00 2001 From: "R.E. Wolff" Date: Thu, 13 Feb 2020 09:20:12 +0100 Subject: [PATCH] More compilation warning fixes from obouizi --- packet/probe.c | 4 ++++ packet/probe_cygwin.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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; /* -- 2.47.2