summaryrefslogtreecommitdiffstats
path: root/patches/thttpd-2.25b/0001-rename-getline-local_getline.patch
blob: 46eff186ee270b36954ff45a95a7373a912e0ce2 (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
From: Michael Olbrich <m.olbrich@pengutronix.de>
Date: Sun, 13 Feb 2011 22:47:34 +0100
Subject: [PATCH] rename getline -> local_getline

fixes a compile error with new toolchain:

htpasswd.c:52:12: error: conflicting types for 'getline'

Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
---
 extras/htpasswd.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/extras/htpasswd.c b/extras/htpasswd.c
index e01ea1d..9bcae4b 100644
--- a/extras/htpasswd.c
+++ b/extras/htpasswd.c
@@ -49,7 +49,7 @@ static void getword(char *word, char *line, char stop) {
     while((line[y++] = line[x++]));
 }
 
-static int getline(char *s, int n, FILE *f) {
+static int local_getline(char *s, int n, FILE *f) {
     register int i=0;
 
     while(1) {
@@ -189,7 +189,7 @@ int main(int argc, char *argv[]) {
     strcpy(user,argv[2]);
 
     found = 0;
-    while(!(getline(line,MAX_STRING_LEN,f))) {
+    while(!(local_getline(line,MAX_STRING_LEN,f))) {
         if(found || (line[0] == '#') || (!line[0])) {
             putline(tfp,line);
             continue;
-- 
1.7.2.3