From: Roy Marples Date: Tue, 4 Feb 2020 02:38:35 +0000 (+0000) Subject: eloop: cast away a compile warning X-Git-Tag: v9.0.0~71 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ada43ee0a848c494094cd83794f6d6ed3bac64d0;p=thirdparty%2Fdhcpcd.git eloop: cast away a compile warning --- diff --git a/src/eloop.c b/src/eloop.c index 454ffc41..7596f59c 100644 --- a/src/eloop.c +++ b/src/eloop.c @@ -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