diff options
author | Rob Landley | 2005-05-04 02:15:23 +0000 |
---|---|---|
committer | Rob Landley | 2005-05-04 02:15:23 +0000 |
commit | 918f2ab3d794172fcc089be3c3f4b0fe71537652 (patch) | |
tree | 445b20bc9b73ebb5f02d63853755ef29c1e4ced7 /networking/udhcp/arpping.c | |
parent | 8b80c71d70f6f063f01864d2363a235aa1d730cf (diff) | |
download | busybox-918f2ab3d794172fcc089be3c3f4b0fe71537652.zip busybox-918f2ab3d794172fcc089be3c3f4b0fe71537652.tar.gz |
Revert the uptime() removal. Let the list sort it out...
Diffstat (limited to 'networking/udhcp/arpping.c')
-rw-r--r-- | networking/udhcp/arpping.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/networking/udhcp/arpping.c b/networking/udhcp/arpping.c index da01ddd..7cc2be4 100644 --- a/networking/udhcp/arpping.c +++ b/networking/udhcp/arpping.c @@ -79,7 +79,7 @@ int arpping(uint32_t yiaddr, uint32_t ip, uint8_t *mac, char *interface) /* wait arp reply, and check it */ tm.tv_usec = 0; - prevTime = time(NULL); + prevTime = uptime(); while (timeout > 0) { FD_ZERO(&fdset); FD_SET(s, &fdset); @@ -97,8 +97,8 @@ int arpping(uint32_t yiaddr, uint32_t ip, uint8_t *mac, char *interface) break; } } - timeout -= time(NULL) - prevTime; - prevTime = time(NULL); + timeout -= uptime() - prevTime; + prevTime = uptime(); } close(s); DEBUG(LOG_INFO, "%salid arp replies for this address", rv ? "No v" : "V"); |