]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Linux: Silence a warning on 32-bit Linux
authorRoy Marples <roy@marples.name>
Fri, 17 Jan 2020 12:58:28 +0000 (12:58 +0000)
committerRoy Marples <roy@marples.name>
Fri, 17 Jan 2020 12:58:28 +0000 (12:58 +0000)
src/eloop.c

index 6e988c8459027aaae1da456a465848558417414f..454ffc41c23f547d036a3fb6fb19a42ea3c7f8de 100644 (file)
@@ -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;
        }