aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/common.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2005-05-04 00:38:15 +0000
committerRob Landley <rob@landley.net>2005-05-04 00:38:15 +0000
commit8b80c71d70f6f063f01864d2363a235aa1d730cf (patch)
treecaa49bdf0255fe00bbf30f6f1b69b0054b23522f /networking/udhcp/common.c
parent15d3f7f143127fa0a09cc6793ad5fba689cbc1a2 (diff)
downloadbusybox-8b80c71d70f6f063f01864d2363a235aa1d730cf.tar.gz
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.c8
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 @@
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