aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruss <russ@69ca8d6d-28ef-0310-b511-8ec308f3f277>2004-05-19 09:18:04 +0000
committerruss <russ@69ca8d6d-28ef-0310-b511-8ec308f3f277>2004-05-19 09:18:04 +0000
commit880e042bb81ac78a186752f619516f20241b8aee (patch)
tree74df732b5d742bda9f7828d2447b2f560009d1fb
parente052102a7ddf112434ca578b9af16a974f8b4263 (diff)
downloadbusybox-w32-880e042bb81ac78a186752f619516f20241b8aee.tar.gz
busybox-w32-880e042bb81ac78a186752f619516f20241b8aee.tar.bz2
busybox-w32-880e042bb81ac78a186752f619516f20241b8aee.zip
use busybox sysinfo struct
git-svn-id: svn://busybox.net/trunk/busybox@8860 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--networking/udhcp/common.c1
-rw-r--r--networking/udhcp/libbb_udhcp.h1
2 files changed, 1 insertions, 1 deletions
diff --git a/networking/udhcp/common.c b/networking/udhcp/common.c
index c5a24fc62..bf2ac4417 100644
--- a/networking/udhcp/common.c
+++ b/networking/udhcp/common.c
@@ -41,7 +41,6 @@ long uptime(void)
41{ 41{
42 struct sysinfo info; 42 struct sysinfo info;
43 sysinfo(&info); 43 sysinfo(&info);
44 printf("uptime %ld\n", (long)info.uptime);
45 return info.uptime; 44 return info.uptime;
46} 45}
47 46
diff --git a/networking/udhcp/libbb_udhcp.h b/networking/udhcp/libbb_udhcp.h
index ee85b156f..51e157142 100644
--- a/networking/udhcp/libbb_udhcp.h
+++ b/networking/udhcp/libbb_udhcp.h
@@ -31,6 +31,7 @@
31 31
32#include <stdlib.h> 32#include <stdlib.h>
33#include <stdio.h> 33#include <stdio.h>
34#include <sys/sysinfo.h>
34 35
35#define TRUE 1 36#define TRUE 1
36#define FALSE 0 37#define FALSE 0