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.
This commit is contained in:
Rob Landley
2005-05-04 00:38:15 +00:00
parent 15d3f7f143
commit 8b80c71d70
4 changed files with 5 additions and 14 deletions

View File

@@ -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