diff options
| author | Roy Marples <roy@marples.name> | 2008-01-07 18:14:51 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2008-01-07 18:14:51 +0000 |
| commit | b5d0d901da7cd53ea7f2b3a21c4ef6cbb4ce69c0 (patch) | |
| tree | 47d7768dae056651578ba693e4c8ddfafbaaac78 /common.h | |
| parent | 52a76582a60d360f74124028ea1f42ea446c1535 (diff) | |
| download | dhcpcd-b5d0d901da7cd53ea7f2b3a21c4ef6cbb4ce69c0.tar.xz | |
Stop using static inflexable buffers when cleaning metas and reading files.
Diffstat (limited to 'common.h')
| -rw-r--r-- | common.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -30,6 +30,7 @@ /* string.h pulls in features.h so the below define checks work */ #include <sys/time.h> +#include <stdio.h> #include <string.h> /* Only GLIBC doesn't support strlcpy */ @@ -44,9 +45,11 @@ void srandomdev (void); #endif void close_fds (void); +char *getline (FILE *fp); int get_time (struct timeval *tp); long uptime (void); void writepid (int fd, pid_t pid); +void *xrealloc (void *ptr, size_t size); void *xmalloc (size_t size); char *xstrdup (const char *str); |
