[BusyBox-cvs] busybox/networking/udhcp common.c,1.9,1.10

Erik Andersen,,, andersen at busybox.net
Wed May 19 08:54:30 UTC 2004


Update of /var/cvs/busybox/networking/udhcp
In directory nail:/tmp/cvs-serv28034/networking/udhcp

Modified Files:
	common.c 
Log Message:
Fix a compile problem


Index: common.c
===================================================================
RCS file: /var/cvs/busybox/networking/udhcp/common.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- a/common.c	19 May 2004 08:29:05 -0000	1.9
+++ b/common.c	19 May 2004 08:54:28 -0000	1.10
@@ -29,7 +29,6 @@
 #include <signal.h>
 #include <paths.h>
 #include <sys/socket.h>
-#include <sys/sysinfo.h>
 #include <stdarg.h>
 
 #include "common.h"
@@ -42,7 +41,7 @@
 {
 	struct sysinfo info;
 	sysinfo(&info);
-	printf("uptime %d\n", info.uptime);
+	printf("uptime %ld\n", (long)info.uptime);
 	return info.uptime;
 }
 




More information about the busybox-cvs mailing list