From: Roy Marples Date: Fri, 17 Jan 2020 12:58:28 +0000 (+0000) Subject: Linux: Silence a warning on 32-bit Linux X-Git-Tag: v9.0.0~106 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e1cdcee41f3a6612540fcf68994cfa92bf14192;p=thirdparty%2Fdhcpcd.git Linux: Silence a warning on 32-bit Linux --- diff --git a/src/eloop.c b/src/eloop.c index 6e988c84..454ffc41 100644 --- a/src/eloop.c +++ b/src/eloop.c @@ -642,7 +642,7 @@ eloop_q_timeout_add_tv(struct eloop *eloop, int queue, const struct timespec *when, void (*callback)(void *), void *arg) { - if (when->tv_sec < 0 || when->tv_sec > UINT_MAX) { + if (when->tv_sec < 0 || (unsigned long)when->tv_sec > UINT_MAX) { errno = EINVAL; return -1; }