diff options
author | Rob Landley <rob@landley.net> | 2005-05-04 00:38:15 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2005-05-04 00:38:15 +0000 |
commit | 8b80c71d70f6f063f01864d2363a235aa1d730cf (patch) | |
tree | caa49bdf0255fe00bbf30f6f1b69b0054b23522f /networking/udhcp/common.c | |
parent | 15d3f7f143127fa0a09cc6793ad5fba689cbc1a2 (diff) | |
download | busybox-w32-8b80c71d70f6f063f01864d2363a235aa1d730cf.tar.gz busybox-w32-8b80c71d70f6f063f01864d2363a235aa1d730cf.tar.bz2 busybox-w32-8b80c71d70f6f063f01864d2363a235aa1d730cf.zip |
Patch from Shaun Jackman:
Replace uptime with time(NULL). time is more portable than uptime and
eliminates the need to define uptime, reducing code size slightly.
Diffstat (limited to 'networking/udhcp/common.c')
-rw-r--r-- | networking/udhcp/common.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/networking/udhcp/common.c b/networking/udhcp/common.c index bf2ac4417..6ca7371d5 100644 --- a/networking/udhcp/common.c +++ b/networking/udhcp/common.c | |||
@@ -37,14 +37,6 @@ | |||
37 | 37 | ||
38 | static int daemonized; | 38 | static int daemonized; |
39 | 39 | ||
40 | long uptime(void) | ||
41 | { | ||
42 | struct sysinfo info; | ||
43 | sysinfo(&info); | ||
44 | return info.uptime; | ||
45 | } | ||
46 | |||
47 | |||
48 | /* | 40 | /* |
49 | * This function makes sure our first socket calls | 41 | * This function makes sure our first socket calls |
50 | * aren't going to fd 1 (printf badness...) and are | 42 | * aren't going to fd 1 (printf badness...) and are |