From: Roy Marples Date: Fri, 9 Nov 2012 09:50:34 +0000 (+0000) Subject: Silence a gcc signed vs unsigned warning by comparing to 0. X-Git-Tag: v5.99.3~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fb9484639632237ed5baebbfac3b4dd6203cb1d;p=thirdparty%2Fdhcpcd.git Silence a gcc signed vs unsigned warning by comparing to 0. --- diff --git a/ipv6ns.c b/ipv6ns.c index 9a2ac249..762ee9a7 100644 --- a/ipv6ns.c +++ b/ipv6ns.c @@ -223,7 +223,7 @@ ipv6ns_sendprobe(void *arg) syslog(LOG_ERR, "%s: sendmsg: %m", rap->iface->name); - ms_to_tv(&tv, rap->retrans ? rap->retrans : RETRANS_TIMER); + ms_to_tv(&tv, rap->retrans == 0 ? RETRANS_TIMER : rap->retrans); ms_to_tv(&rtv, MIN_RANDOM_FACTOR); timeradd(&tv, &rtv, &tv); rtv.tv_sec = 0;