Re: [squid-users] Re: chpasswd.cgi: 'make' error (error: conflicting types for)

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Fri, 11 Feb 2005 13:59:15 +0100 (CET)

On Fri, 11 Feb 2005, thomas wrote:

> I downloaded chpasswd-cgi.tar.gz from squid.cache.org/htpasswd/
>
> I was getting following error when running make for chpasswd.cgi
>
> chpasswd.c:248: error: conflicting types for 'getword'
> chpasswd.c:136: error: previous implicit declaration of 'getword' was here
> chpasswd.c:266: error: conflicting types for 'Herror'
> chpasswd.c:156: error: previous implicit declaration of 'Herror' was here
> chpasswd.c:283: error: conflicting types for 'Hmsg'
> chpasswd.c:101: error: previous implicit declaration of 'Hmsg' was here
> chpasswd.c:294: error: conflicting types for 'putline'
> chpasswd.c:219: error: previous implicit declaration of 'putline' was here
> chpasswd.c:322: error: conflicting types for 'Changed'
> chpasswd.c:230: error: previous implicit declaration of 'Changed' was here
> chpasswd.c:341: error: conflicting types for 'NotFound'
> chpasswd.c:232: error: previous implicit declaration of 'NotFound' was here
> chpasswd.c:658: error: conflicting types for 'rulefail'
> chpasswd.c:644: error: previous implicit declaration of 'rulefail' was here
> chpasswd.c:692: error: conflicting types for 'strip_latin'
> chpasswd.c:607: error: previous implicit declaration of 'strip_latin' was here
> chpasswd.c:820: error: conflicting types for 'sendmail'
> chpasswd.c:612: error: previous implicit declaration of 'sendmail' was here
>
>
> As Henrik Suggested, after adding these three lines, first six line vanished.
>
> void getword(char *word, char *line, char stop);
> void Herror(char *msg, FILE * fpw, FILE * tmp);
> void putline(FILE *,char *);

Just do the same for the other functions.

Regards
Henrik
Received on Fri Feb 11 2005 - 05:59:18 MST

This archive was generated by hypermail pre-2.1.9 : Tue Mar 01 2005 - 12:00:02 MST