Re: lib/rfc2617.c

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Tue, 06 Mar 2001 23:53:30 +0100

We SHOULD decide on always use one form or the other of char. Just as
bitfields char (without a qualifier) is either signed or unsigned, which
is up to the compiler used..

In this specific case, a typecast is "the correct thing to do".

/Henrik

Adrian Chadd wrote:
>
> More cc fun. :)
>
> The mipspro cc compiler when using -fullwarn is spitting out
> the following:
>
> cc-1164 cc: WARNING File = rfc2617.c, Line = 108
> Argument of type "const char *" is incompatible with parameter of type
> "const unsigned char *".
>
> MD5Update(&Md5Ctx, pszUserName, strlen(pszUserName));
> ^
>
> cc-1164 cc: WARNING File = rfc2617.c, Line = 110
> Argument of type "const char *" is incompatible with parameter of type
> "const unsigned char *".
>
> MD5Update(&Md5Ctx, pszRealm, strlen(pszRealm));
> ^
> What should we do here? Convert the code to use unsigned char *
> when doing md5 stuff?
>
> Adrian
>
> --
> Adrian Chadd "The fact you can download a 100 megabyte file
> <adrian@creative.net.au> from half way around the world should be viewed
> as an accident and not a right."
> -- Adrian Chadd and Bill Fumerola
Received on Tue Mar 06 2001 - 15:52:08 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:13:36 MST