Fix a compile problem
This commit is contained in:
@@ -29,7 +29,6 @@
|
|||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <paths.h>
|
#include <paths.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/sysinfo.h>
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
@@ -42,7 +41,7 @@ long uptime(void)
|
|||||||
{
|
{
|
||||||
struct sysinfo info;
|
struct sysinfo info;
|
||||||
sysinfo(&info);
|
sysinfo(&info);
|
||||||
printf("uptime %d\n", info.uptime);
|
printf("uptime %ld\n", (long)info.uptime);
|
||||||
return info.uptime;
|
return info.uptime;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user