diff options
author | Russ Dill <Russ.Dill@asu.edu> | 2004-05-19 08:29:05 +0000 |
---|---|---|
committer | Russ Dill <Russ.Dill@asu.edu> | 2004-05-19 08:29:05 +0000 |
commit | 309c7b71e66f45225f369591caf2441bfa2d1670 (patch) | |
tree | 364fc965115e6ba6010ec150f29334af25b159ee /networking/udhcp/common.c | |
parent | 91e006c1adf660a0180b6d3988a14150ccb36fa9 (diff) | |
download | busybox-w32-309c7b71e66f45225f369591caf2441bfa2d1670.tar.gz busybox-w32-309c7b71e66f45225f369591caf2441bfa2d1670.tar.bz2 busybox-w32-309c7b71e66f45225f369591caf2441bfa2d1670.zip |
fix timewarp in client (server fix later)
Diffstat (limited to 'networking/udhcp/common.c')
-rw-r--r-- | networking/udhcp/common.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/networking/udhcp/common.c b/networking/udhcp/common.c index 4f856ee6c..ce76c516d 100644 --- a/networking/udhcp/common.c +++ b/networking/udhcp/common.c | |||
@@ -29,6 +29,7 @@ | |||
29 | #include <signal.h> | 29 | #include <signal.h> |
30 | #include <paths.h> | 30 | #include <paths.h> |
31 | #include <sys/socket.h> | 31 | #include <sys/socket.h> |
32 | #include <sys/sysinfo.h> | ||
32 | #include <stdarg.h> | 33 | #include <stdarg.h> |
33 | 34 | ||
34 | #include "common.h" | 35 | #include "common.h" |
@@ -37,6 +38,14 @@ | |||
37 | 38 | ||
38 | static int daemonized; | 39 | static int daemonized; |
39 | 40 | ||
41 | long uptime(void) | ||
42 | { | ||
43 | struct sysinfo info; | ||
44 | sysinfo(&info); | ||
45 | printf("uptime %d\n", info.uptime); | ||
46 | return info.uptime; | ||
47 | } | ||
48 | |||
40 | 49 | ||
41 | /* | 50 | /* |
42 | * This function makes sure our first socket calls | 51 | * This function makes sure our first socket calls |