summaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-11-05 13:57:54 +0000
committerRoy Marples <roy@marples.name>2008-11-05 13:57:54 +0000
commite1caa8dbade9d653dec2172b5c052f1dbeaebb22 (patch)
tree841472da5b26b69879e83089635607b5a6b39129 /common.h
parent9783ceb17a8513b0ebcf5fc36d5a42cbd24f1c49 (diff)
downloaddhcpcd-e1caa8dbade9d653dec2172b5c052f1dbeaebb22.tar.xz
get_line now uses a single buffer, strips leading space and skips comments. This reduces malloc usage slightly and gives a cleaner API at the expense of a slight bss increase.
Diffstat (limited to 'common.h')
-rw-r--r--common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common.h b/common.h
index 453d6b77..c5879452 100644
--- a/common.h
+++ b/common.h
@@ -86,7 +86,7 @@ int closefrom(int);
int set_cloexec(int);
int set_nonblock(int);
-ssize_t get_line(char **, size_t *, FILE *);
+char *get_line(FILE * restrict);
extern int clock_monotonic;
int get_monotonic(struct timeval *);
time_t uptime(void);