From 8b80c71d70f6f063f01864d2363a235aa1d730cf Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 4 May 2005 00:38:15 +0000 Subject: 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. --- networking/udhcp/common.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'networking/udhcp/common.c') 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 -- cgit v1.2.3