Rename getline with get_line to avoid collision with getline(3)

When getline(3) in 2009 was added a _WITH_GETLINE guard has also been added.
This rename is made in preparation for the removal of this guard
This commit is contained in:
Baptiste Daroussin 2016-05-10 11:35:03 +00:00
parent f2f5b1337e
commit 997f8ff84f

View File

@ -210,7 +210,7 @@ setOption(isc_opt_t *op, int which, void *rval)
}
static char *
getline(FILE *fd)
get_line(FILE *fd)
{
static char *sp, line[BUFSIZ];
char *lp, *p;
@ -248,7 +248,7 @@ getConfig(FILE *fd, char *key, char **Ar, int *nargs)
else
len = 0;
state = 0;
while((lp = getline(fd)) != NULL) {
while((lp = get_line(fd)) != NULL) {
for(; isspace((unsigned char)*lp); lp++)
;
switch(state) {