linux-nokia900-meego: minimize defconfig with savedefconfig
[openembedded.git] / recipes / thttpd / files / htpasswd_getline.diff
blob82b12e28cbaec00c74c143f2e99d9f92b9cf1859
1 --- thttpd-2.25b/extras/htpasswd.c.old 2010-04-28 17:23:40.000000000 +0100
2 +++ thttpd-2.25b/extras/htpasswd.c 2010-04-28 17:24:00.000000000 +0100
3 @@ -49,7 +49,7 @@
4 while((line[y++] = line[x++]));
7 -static int getline(char *s, int n, FILE *f) {
8 +static int ht_getline(char *s, int n, FILE *f) {
9 register int i=0;
11 while(1) {
12 @@ -189,7 +189,7 @@
13 strcpy(user,argv[2]);
15 found = 0;
16 - while(!(getline(line,MAX_STRING_LEN,f))) {
17 + while(!(ht_getline(line,MAX_STRING_LEN,f))) {
18 if(found || (line[0] == '#') || (!line[0])) {
19 putline(tfp,line);
20 continue;