#! /bin/sh /usr/share/dpatch/dpatch-run
## ../bug-552844-ftbfs-htpasswd.c-onflicting-types.dpatch by <jari.aalto@cante.net>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Bug#552844 FTBFS: htpasswd.c:52: error: conflicting types for getline
@DPATCH@
--- mini-httpd-1.19.orig/htpasswd.c
+++ mini-httpd-1.19/htpasswd.c
@@ -49,7 +49,7 @@
while((line[y++] = line[x++]));
}
-static int getline(char *s, int n, FILE *f) {
+static int mygetline(char *s, int n, FILE *f) {
register int i=0;
while(1) {
@@ -189,7 +189,7 @@
strcpy(user,argv[2]);
found = 0;
- while(!(getline(line,MAX_STRING_LEN,f))) {
+ while(!(mygetline(line,MAX_STRING_LEN,f))) {
if(found || (line[0] == '#') || (!line[0])) {
putline(tfp,line);
continue;