aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-05-19 08:54:28 +0000
committerEric Andersen <andersen@codepoet.org>2004-05-19 08:54:28 +0000
commit28885c3f20a38820c8c05d900581d3feb410b36a (patch)
tree3b44974c3b3acd8ec36622a4d5d3d66dace492ee /networking
parent309c7b71e66f45225f369591caf2441bfa2d1670 (diff)
downloadbusybox-w32-28885c3f20a38820c8c05d900581d3feb410b36a.tar.gz
busybox-w32-28885c3f20a38820c8c05d900581d3feb410b36a.tar.bz2
busybox-w32-28885c3f20a38820c8c05d900581d3feb410b36a.zip
Fix a compile problem
Diffstat (limited to 'networking')
-rw-r--r--networking/udhcp/common.c3
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