diff options
| author | Roy Marples <roy@marples.name> | 2007-11-07 20:59:52 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2007-11-07 20:59:52 +0000 |
| commit | 348016d0ac49d1252d523c362940a2aa1e7e4e2f (patch) | |
| tree | c6ca82df95d3741138340b804a4c20e18d54abf5 /common.h | |
| parent | 6557f5cc3ec255bc213a2bd65dca9577ffa8454a (diff) | |
| download | dhcpcd-348016d0ac49d1252d523c362940a2aa1e7e4e2f.tar.xz | |
timeval defines seconds as long, so we should use long over time_t
Diffstat (limited to 'common.h')
| -rw-r--r-- | common.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -9,7 +9,6 @@ #define COMMON_H /* string.h pulls in features.h so the below define checks work */ -#include <sys/time.h> #include <string.h> /* Only GLIBC doesn't support strlcpy */ @@ -25,7 +24,7 @@ void srandomdev (void); void close_fds (void); int get_time (struct timeval *tp); -time_t uptime (void); +long uptime (void); void writepid (int fd, pid_t pid); void *xmalloc (size_t size); char *xstrdup (const char *str); |
