1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-26 11:47:31 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=299362

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) {