Fix gcc compile warning.
authorRoy Marples <roy@marples.name>
Tue, 2 Sep 2014 21:42:15 +0000 (21:42 +0000)
committerRoy Marples <roy@marples.name>
Tue, 2 Sep 2014 21:42:15 +0000 (21:42 +0000)
src/dhcpcd-online/dhcpcd-online.c

index ab3163828756bfe1536cf364b3e84f5a7712568e..6a5871b269025f5bd45d79df2993d4aa04cec164 100644 (file)
@@ -186,8 +186,8 @@ main(int argc, char **argv)
                            (t.tv_nsec + 999999) / 1000000 > INT_MAX % 1000000))
                                timeout = INT_MAX;
                        else
-                               timeout = (int)t.tv_sec * 1000 +
-                                   (t.tv_nsec + 999999) / 1000000;
+                               timeout = (int)(t.tv_sec * 1000 +
+                                   (t.tv_nsec + 999999) / 1000000);
                        n = poll(&pfd, 1, timeout);
                }
                if (n == -1) {