diff options
-rw-r--r-- | networking/udhcp/common.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/networking/udhcp/common.c b/networking/udhcp/common.c index ce76c516d..c5a24fc62 100644 --- a/networking/udhcp/common.c +++ b/networking/udhcp/common.c | |||
@@ -29,7 +29,6 @@ | |||
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> | ||
33 | #include <stdarg.h> | 32 | #include <stdarg.h> |
34 | 33 | ||
35 | #include "common.h" | 34 | #include "common.h" |
@@ -42,7 +41,7 @@ long uptime(void) | |||
42 | { | 41 | { |
43 | struct sysinfo info; | 42 | struct sysinfo info; |
44 | sysinfo(&info); | 43 | sysinfo(&info); |
45 | printf("uptime %d\n", info.uptime); | 44 | printf("uptime %ld\n", (long)info.uptime); |
46 | return info.uptime; | 45 | return info.uptime; |
47 | } | 46 | } |
48 | 47 | ||