From 502acba2af821391b85a2cd4ac7b91ad8e9d4180 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 30 Sep 2016 17:15:05 +0200 Subject: strcasecompare: is the new name for strequal() ... to make it less likely that we forget that the function actually does case insentive compares. Also replaced several invokes of the function with a plain strcmp when case sensitivity is not an issue (like comparing with "-"). --- tests/libtest/libauthretry.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/libtest') diff --git a/tests/libtest/libauthretry.c b/tests/libtest/libauthretry.c index 994f9de06..7e3025df8 100644 --- a/tests/libtest/libauthretry.c +++ b/tests/libtest/libauthretry.c @@ -25,7 +25,7 @@ */ #include "test.h" -#include "strequal.h" +#include "strcase.h" #include "memdebug.h" static CURLcode send_request(CURL *curl, const char *url, int seq, @@ -72,11 +72,11 @@ static long parse_auth_name(const char *arg) { if(!arg) return CURLAUTH_NONE; - if(strequal(arg, "basic")) + if(strcasecompare(arg, "basic")) return CURLAUTH_BASIC; - if(strequal(arg, "digest")) + if(strcasecompare(arg, "digest")) return CURLAUTH_DIGEST; - if(strequal(arg, "ntlm")) + if(strcasecompare(arg, "ntlm")) return CURLAUTH_NTLM; return CURLAUTH_NONE; } -- cgit v1.2.3