curl-users
Re: strnequal -> checkprefix patch
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 28 Oct 2002 22:54:30 +0100 (MET)
Date: Mon, 28 Oct 2002 22:54:30 +0100 (MET)
On Mon, 28 Oct 2002 kromJx_at_crosswinds.net wrote:
> Ok, here comes the (trivial) patch (base version is vanilla 7.10.1):
Thanks! It applied nicely and has been committed.
> strnequal() is alse used in src/main.c, but this file doesn't include
> lib/strnequal.h so I didn't change it there.
Right, the client code doesn't use lib-private header files. It isn't allowed
to do that.
> I also encountered a number of cases where the *second* argument of
> strnequal is the constant. I didn't know whether it was safe to change the
> order of the arguments and use checkprefix() instead, so I left them alone.
I took care of a bunch of that kind.
-- Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sfReceived on 2002-10-28