/* 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;
#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);
return (-1);
}
} else {
- while (tomatch != 0 && (line = getline (f))) {
+ while (tomatch != 0 && (line = get_line (f))) {
struct in_addr addr;
a = line;
/* 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)
dhcp->frominfo = true;
- while ((line = getline (fp))) {
+ while ((line = get_line (fp))) {
var = line;
/* Strip leading spaces/tabs */