aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/dhcpc.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2005-05-04 02:15:23 +0000
committerRob Landley <rob@landley.net>2005-05-04 02:15:23 +0000
commit918f2ab3d794172fcc089be3c3f4b0fe71537652 (patch)
tree445b20bc9b73ebb5f02d63853755ef29c1e4ced7 /networking/udhcp/dhcpc.c
parent8b80c71d70f6f063f01864d2363a235aa1d730cf (diff)
downloadbusybox-918f2ab3d794172fcc089be3c3f4b0fe71537652.tar.gz
Revert the uptime() removal. Let the list sort it out...
Diffstat (limited to 'networking/udhcp/dhcpc.c')
-rw-r--r--networking/udhcp/dhcpc.c4
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[])
for (;;) {
- tv.tv_sec = timeout - time(NULL);
+ tv.tv_sec = timeout - uptime();
tv.tv_usec = 0;
if (listen_mode != LISTEN_NONE && fd < 0) {
@@ -330,7 +330,7 @@ int main(int argc, char *argv[])
retval = select(max_fd + 1, &rfds, NULL, NULL, &tv);
} else retval = 0; /* If we already timed out, fall through */
- now = time(NULL);
+ now = uptime();
if (retval == 0) {
/* timeout dropped to zero */
switch (state) {