From b053278b186b4b9dfacff53b30cc2c7967923724 Mon Sep 17 00:00:00 2001 From: RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> Date: Sun, 8 Oct 2023 22:49:45 +0200 Subject: fix sign compare compiler warnings diff --git a/plugins-root/check_icmp.c b/plugins-root/check_icmp.c index abc5595..f21bf3b 100644 --- a/plugins-root/check_icmp.c +++ b/plugins-root/check_icmp.c @@ -1053,9 +1053,9 @@ wait_for_reply(int sock, u_int t) host->time_waited += tdiff; host->icmp_recv++; icmp_recv++; - if (tdiff > (int)host->rtmax) + if (tdiff > (unsigned int)host->rtmax) host->rtmax = tdiff; - if (tdiff < (int)host->rtmin) + if (tdiff < (unsigned int)host->rtmin) host->rtmin = tdiff; if(debug) { -- cgit v0.10-9-g596f