Fix a compile problem
authorEric Andersen <andersen@codepoet.org>
Wed, 19 May 2004 08:54:28 +0000 (08:54 -0000)
committerEric Andersen <andersen@codepoet.org>
Wed, 19 May 2004 08:54:28 +0000 (08:54 -0000)
networking/udhcp/common.c

index ce76c516d963f11963f6bdeb7d62b0c306cffcb8..c5a24fc62f9af65eda728dac88e0e856ddbe48d6 100644 (file)
@@ -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 @@ long uptime(void)
 {
        struct sysinfo info;
        sysinfo(&info);
-       printf("uptime %d\n", info.uptime);
+       printf("uptime %ld\n", (long)info.uptime);
        return info.uptime;
 }