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/common.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/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 6ca7371..bf2ac44 100644 --- a/networking/udhcp/common.c +++ b/networking/udhcp/common.c @@ -37,6 +37,14 @@ static int daemonized; +long uptime(void) +{ + struct sysinfo info; + sysinfo(&info); + return info.uptime; +} + + /* * This function makes sure our first socket calls * aren't going to fd 1 (printf badness...) and are |