diff options
author | Rob Landley <rob@landley.net> | 2005-05-04 02:15:23 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2005-05-04 02:15:23 +0000 |
commit | 918f2ab3d794172fcc089be3c3f4b0fe71537652 (patch) | |
tree | 445b20bc9b73ebb5f02d63853755ef29c1e4ced7 /networking/udhcp/dhcpc.c | |
parent | 8b80c71d70f6f063f01864d2363a235aa1d730cf (diff) | |
download | busybox-w32-918f2ab3d794172fcc089be3c3f4b0fe71537652.tar.gz busybox-w32-918f2ab3d794172fcc089be3c3f4b0fe71537652.tar.bz2 busybox-w32-918f2ab3d794172fcc089be3c3f4b0fe71537652.zip |
Revert the uptime() removal. Let the list sort it out...
Diffstat (limited to '')
-rw-r--r-- | networking/udhcp/dhcpc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c index 028338ff3..8009bec04 100644 --- a/networking/udhcp/dhcpc.c +++ b/networking/udhcp/dhcpc.c | |||
@@ -310,7 +310,7 @@ int main(int argc, char *argv[]) | |||
310 | 310 | ||
311 | for (;;) { | 311 | for (;;) { |
312 | 312 | ||
313 | tv.tv_sec = timeout - time(NULL); | 313 | tv.tv_sec = timeout - uptime(); |
314 | tv.tv_usec = 0; | 314 | tv.tv_usec = 0; |
315 | 315 | ||
316 | if (listen_mode != LISTEN_NONE && fd < 0) { | 316 | if (listen_mode != LISTEN_NONE && fd < 0) { |
@@ -330,7 +330,7 @@ int main(int argc, char *argv[]) | |||
330 | retval = select(max_fd + 1, &rfds, NULL, NULL, &tv); | 330 | retval = select(max_fd + 1, &rfds, NULL, NULL, &tv); |
331 | } else retval = 0; /* If we already timed out, fall through */ | 331 | } else retval = 0; /* If we already timed out, fall through */ |
332 | 332 | ||
333 | now = time(NULL); | 333 | now = uptime(); |
334 | if (retval == 0) { | 334 | if (retval == 0) { |
335 | /* timeout dropped to zero */ | 335 | /* timeout dropped to zero */ |
336 | switch (state) { | 336 | switch (state) { |