You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Rob Hartill <ro...@imdb.com> on 1996/10/23 18:40:30 UTC

Re: minor fix to apache 1.1.1 htdigest.c

Albert Lunde wrote:
>
>This change to htdigest seems to get rid of a warning from the HP ANSI C
>compiler...

thanks.

regards,
rob.


>This is on HP/UX 10.01, using the Apache 1.1.1 sources.
>
>I don't think this is a real "bug" just something that makes the compiler
>happy.
>
>The error:
>>        cc +O2 -Ae htdigest.c -o htdigest
>>cc: "htdigest.c", line 90: warning 604: Pointers are not
>>assignment-compatible.
>>cc: "htdigest.c", line 90: warning 563: Argument #2 is not the correct type.
>
>the fix:
>
>># diff htdigest.c htdigest.c.dist
>>90c90
>><     MD5Update (&context, (unsigned char *) string, strlen(string));
>>---
>>>     MD5Update (&context, string, strlen(string));
>>#
>
>
>---
>    Albert Lunde                      Albert-Lunde@nwu.edu
>
>
>


-- 
Rob Hartill (robh@imdb.com)    
http://www.imdb.com/  ... why wait for a clear night to see the stars?.

Re: minor fix to apache 1.1.1 htdigest.c

Posted by Brian Behlendorf <br...@organic.com>.
Thanks Albert; the fix has been applied to the 1.2 development tree.

	Brian

> >This is on HP/UX 10.01, using the Apache 1.1.1 sources.
> >
> >I don't think this is a real "bug" just something that makes the compiler
> >happy.
> >
> >The error:
> >>        cc +O2 -Ae htdigest.c -o htdigest
> >>cc: "htdigest.c", line 90: warning 604: Pointers are not
> >>assignment-compatible.
> >>cc: "htdigest.c", line 90: warning 563: Argument #2 is not the correct type.
> >
> >the fix:
> >
> >># diff htdigest.c htdigest.c.dist
> >>90c90
> >><     MD5Update (&context, (unsigned char *) string, strlen(string));
> >>---
> >>>     MD5Update (&context, string, strlen(string));
> >>#
> >
> >
> >---
> >    Albert Lunde                      Albert-Lunde@nwu.edu
> >
> >
> >
> 
> 
> -- 
> Rob Hartill (robh@imdb.com)    
> http://www.imdb.com/  ... why wait for a clear night to see the stars?.
> 

--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--
brian@organic.com  www.apache.org  hyperreal.com  http://www.organic.com/JOBS