1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
$NetBSD: patch-at,v 1.1 2009/07/25 19:55:11 roy Exp $
Avoid collision with system getline(3).
--- src/support/logresolve.c.orig 2009-07-25 20:50:40.000000000 +0100
+++ src/support/logresolve.c 2009-07-25 20:50:51.000000000 +0100
@@ -71,7 +71,7 @@
#endif /* !MPE && !WIN32*/
static void cgethost(struct in_addr ipnum, char *string, int check);
-static int getline(char *s, int n);
+static int get_line(char *s, int n);
static void stats(FILE *output);
@@ -278,7 +278,7 @@
* gets a line from stdin
*/
-static int getline (char *s, int n)
+static int get_line (char *s, int n)
{
char *cp;
@@ -326,7 +326,7 @@
for (i = 0; i < MAX_ERR + 2; i++)
errors[i] = 0;
- while (getline(line, MAXLINE)) {
+ while (get_line(line, MAXLINE)) {
if (line[0] == '\0')
continue;
entries++;
|