diff --git a/common.c b/common.c index 161b891e..5d5bacfb 100644 --- a/common.c +++ b/common.c @@ -43,7 +43,7 @@ /* Handy routine to read very long lines in text files. * This means we read the whole line and avoid any nasty buffer overflows. */ -char *getline (FILE *fp) +char *get_line (FILE *fp) { char *line = NULL; char *p; diff --git a/common.h b/common.h index 57e4e79e..4b26318b 100644 --- a/common.h +++ b/common.h @@ -53,7 +53,7 @@ void srandomdev (void); #endif void close_fds (void); -char *getline (FILE *fp); +char *get_line (FILE *fp); int get_time (struct timeval *tp); time_t uptime (void); void writepid (int fd, pid_t pid); diff --git a/configure.c b/configure.c index 559ba338..b5add7fe 100644 --- a/configure.c +++ b/configure.c @@ -285,7 +285,7 @@ static int _make_ntp (const char *file, const char *ifname, const dhcp_t *dhcp) return (-1); } } else { - while (tomatch != 0 && (line = getline (f))) { + while (tomatch != 0 && (line = get_line (f))) { struct in_addr addr; a = line; diff --git a/duid.c b/duid.c index 9fd6f4be..e4dd83b9 100644 --- a/duid.c +++ b/duid.c @@ -60,7 +60,7 @@ size_t get_duid (unsigned char *duid, const interface_t *iface) /* If we already have a DUID then use it as it's never supposed * to change once we have one even if the interfaces do */ if ((f = fopen (DUIDFILE, "r"))) { - char *line = getline (f); + char *line = get_line (f); if (line) { len = hwaddr_aton (NULL, line); if (len && len <= DUID_LEN) diff --git a/info.c b/info.c index 0d1106eb..9c788b33 100644 --- a/info.c +++ b/info.c @@ -333,7 +333,7 @@ bool read_info (const interface_t *iface, dhcp_t *dhcp) dhcp->frominfo = true; - while ((line = getline (fp))) { + while ((line = get_line (fp))) { var = line; /* Strip leading spaces/tabs */