diff options
Diffstat (limited to 'src/ifplugd.c')
-rw-r--r-- | src/ifplugd.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ifplugd.c b/src/ifplugd.c index 7d8bba3..3c07a5e 100644 --- a/src/ifplugd.c +++ b/src/ifplugd.c @@ -460,7 +460,10 @@ void work(void) { interface_status_t s; fd_set qfds = fds; int d; - struct timeval tv = { polltime, 0 }; + struct timeval tv; + + tv.tv_sec = polltime; + tv.tv_usec = 0; if (select(FD_SETSIZE, &qfds, NULL, NULL, &tv) < 0) { if (errno == EINTR) |