]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
More compilation warning fixes from obouizi
authorR.E. Wolff <R.E.Wolff@BitWizard.nl>
Thu, 13 Feb 2020 08:20:12 +0000 (09:20 +0100)
committerR.E. Wolff <R.E.Wolff@BitWizard.nl>
Thu, 13 Feb 2020 08:20:12 +0000 (09:20 +0100)
packet/probe.c
packet/probe_cygwin.c

index c2b4a55672b9c2d2706c853a20909d3db978e038..48f11b6ed11357dcc0a2ac40b887bd3aab83afcc 100644 (file)
@@ -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;
 
index 79e9fdb203356cdfda4e97cdb9709bd540f3b44c..039e2e3095c363585e15fb02cc926a8024629b16 100644 (file)
@@ -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;
 
     /*