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/common.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 'networking/udhcp/common.c')
-rw-r--r-- | networking/udhcp/common.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/networking/udhcp/common.c b/networking/udhcp/common.c index 6ca7371d5..bf2ac4417 100644 --- a/networking/udhcp/common.c +++ b/networking/udhcp/common.c | |||
@@ -37,6 +37,14 @@ | |||
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 | |||
40 | /* | 48 | /* |
41 | * This function makes sure our first socket calls | 49 | * This function makes sure our first socket calls |
42 | * aren't going to fd 1 (printf badness...) and are | 50 | * aren't going to fd 1 (printf badness...) and are |