summaryrefslogtreecommitdiff
path: root/lib/netrc.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-10-16 08:23:48 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-10-16 08:23:48 +0000
commit9d16b4081ed011c11f9876ae2685076e92113593 (patch)
tree566029901ed6edccdc424814d068c9db75723d2c /lib/netrc.c
parent545cafce9b81f4bda89072a5ebb2d1632f10dc44 (diff)
downloadcurl-9d16b4081ed011c11f9876ae2685076e92113593.tar.gz
Renamed Curl_ascii_equal to Curl_raw_equal and bugfixed the my_toupper function
used in strequal.c so now all test cases run fine for me again.
Diffstat (limited to 'lib/netrc.c')
-rw-r--r--lib/netrc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/netrc.c b/lib/netrc.c
index 2f049e929..83ad07761 100644
--- a/lib/netrc.c
+++ b/lib/netrc.c
@@ -155,7 +155,7 @@ int Curl_parsenetrc(const char *host,
switch(state) {
case NOTHING:
- if(Curl_ascii_equal("machine", tok)) {
+ if(Curl_raw_equal("machine", tok)) {
/* the next tok is the machine name, this is in itself the
delimiter that starts the stuff entered for this machine,
after this we need to search for 'login' and
@@ -164,7 +164,7 @@ int Curl_parsenetrc(const char *host,
}
break;
case HOSTFOUND:
- if(Curl_ascii_equal(host, tok)) {
+ if(Curl_raw_equal(host, tok)) {
/* and yes, this is our host! */
state=HOSTVALID;
#ifdef _NETRC_DEBUG
@@ -180,7 +180,7 @@ int Curl_parsenetrc(const char *host,
/* we are now parsing sub-keywords concerning "our" host */
if(state_login) {
if(specific_login) {
- state_our_login = Curl_ascii_equal(login, tok);
+ state_our_login = Curl_raw_equal(login, tok);
}
else {
strncpy(login, tok, LOGINSIZE-1);
@@ -199,11 +199,11 @@ int Curl_parsenetrc(const char *host,
}
state_password=0;
}
- else if(Curl_ascii_equal("login", tok))
+ else if(Curl_raw_equal("login", tok))
state_login=1;
- else if(Curl_ascii_equal("password", tok))
+ else if(Curl_raw_equal("password", tok))
state_password=1;
- else if(Curl_ascii_equal("machine", tok)) {
+ else if(Curl_raw_equal("machine", tok)) {
/* ok, there's machine here go => */
state = HOSTFOUND;
state_our_login = FALSE;