]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
eloop: cast away a compile warning
authorRoy Marples <roy@marples.name>
Tue, 4 Feb 2020 02:38:35 +0000 (02:38 +0000)
committerRoy Marples <roy@marples.name>
Tue, 4 Feb 2020 02:38:35 +0000 (02:38 +0000)
src/eloop.c

index 454ffc41c23f547d036a3fb6fb19a42ea3c7f8de..7596f59c3ad00d950b19ea71e595f5d592a4a29b 100644 (file)
@@ -1043,7 +1043,7 @@ eloop_start(struct eloop *eloop, sigset_t *signals)
                                ts.tv_nsec = 0;
                        } else {
                                ts.tv_sec = (time_t)t->seconds;
-                               ts.tv_nsec = t->nseconds;
+                               ts.tv_nsec = (long)t->nseconds;
                        }
                        tsp = &ts;
 #endif