aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/udhcp/common.c')
-rw-r--r--networking/udhcp/common.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/networking/udhcp/common.c b/networking/udhcp/common.c
index 4f856ee6c..ce76c516d 100644
--- a/networking/udhcp/common.c
+++ b/networking/udhcp/common.c
@@ -29,6 +29,7 @@
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>
32#include <stdarg.h> 33#include <stdarg.h>
33 34
34#include "common.h" 35#include "common.h"
@@ -37,6 +38,14 @@
37 38
38static int daemonized; 39static int daemonized;
39 40
41long uptime(void)
42{
43 struct sysinfo info;
44 sysinfo(&info);
45 printf("uptime %d\n", info.uptime);
46 return info.uptime;
47}
48
40 49
41/* 50/*
42 * This function makes sure our first socket calls 51 * This function makes sure our first socket calls