aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2004-05-19 08:54:28 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2004-05-19 08:54:28 +0000
commitb0ace355b2eb33642d5ae137fb1c6d9c0586f924 (patch)
tree3b44974c3b3acd8ec36622a4d5d3d66dace492ee
parentee9ca3a4e260a8a74059c51b723c3e746eb841de (diff)
downloadbusybox-w32-b0ace355b2eb33642d5ae137fb1c6d9c0586f924.tar.gz
busybox-w32-b0ace355b2eb33642d5ae137fb1c6d9c0586f924.tar.bz2
busybox-w32-b0ace355b2eb33642d5ae137fb1c6d9c0586f924.zip
Fix a compile problem
git-svn-id: svn://busybox.net/trunk/busybox@8858 69ca8d6d-28ef-0310-b511-8ec308f3f277
-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