summaryrefslogtreecommitdiff
blob: f0ddba8d279135cf4fcc4cf071df7431f99a18b1 (plain)
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
34
35
36
37
38
39
40
41
42
--- src/tools/bdfgname.c
+++ src/tools/bdfgname.c
@@ -47,9 +47,9 @@
 
 static int
 #ifdef __STDC__
-getline(FILE *in, char *buf, int limit)
+get_line(FILE *in, char *buf, int limit)
 #else
-getline(in, buf, limit)
+get_line(in, buf, limit)
 FILE *in;
 char *buf;
 int limit;
@@ -99,11 +99,11 @@
 
     while (!feof(in)) {
         pos = ftell(in);
-        (void) getline(in, buf, 256);
+        (void) get_line(in, buf, 256);
         while (!feof(in) && (buf[0] == 0 || buf[0] == '#')) {
             buf[0] = 0;
             pos = ftell(in);
-            (void) getline(in, buf, 256);
+            (void) get_line(in, buf, 256);
         }
 
         if (buf[0] == 0)
@@ -170,11 +170,11 @@
 
     while (!feof(in)) {
         pos = ftell(in);
-        (void) getline(in, buf, 256);
+        (void) get_line(in, buf, 256);
         while (!feof(in) && (buf[0] == 0 || buf[0] == '#')) {
             buf[0] = 0;
             pos = ftell(in);
-            (void) getline(in, buf, 256);
+            (void) get_line(in, buf, 256);
         }
 
         c = _bdf_atol(buf, 0, 16);