2
0
mirror of https://github.com/curl/curl.git synced 2025-03-01 15:15:34 +08:00

netrc: Removed _NETRC_DEBUG code.

This is not needed anymore as we have unit testing running on it.
This commit is contained in:
Julien Chaffraix 2011-02-20 21:10:45 -08:00
parent 9f8e960a1a
commit 0b8cdc0635

View File

@ -142,9 +142,6 @@ int Curl_parsenetrc(const char *host,
if(Curl_raw_equal(host, tok)) { if(Curl_raw_equal(host, tok)) {
/* and yes, this is our host! */ /* and yes, this is our host! */
state=HOSTVALID; state=HOSTVALID;
#ifdef _NETRC_DEBUG
fprintf(stderr, "HOST: %s\n", tok);
#endif
retcode=0; /* we did find our host */ retcode=0; /* we did find our host */
} }
else else
@ -159,18 +156,12 @@ int Curl_parsenetrc(const char *host,
} }
else { else {
strncpy(login, tok, LOGINSIZE-1); strncpy(login, tok, LOGINSIZE-1);
#ifdef _NETRC_DEBUG
fprintf(stderr, "LOGIN: %s\n", login);
#endif
} }
state_login=0; state_login=0;
} }
else if(state_password) { else if(state_password) {
if(state_our_login || !specific_login) { if(state_our_login || !specific_login) {
strncpy(password, tok, PASSWORDSIZE-1); strncpy(password, tok, PASSWORDSIZE-1);
#ifdef _NETRC_DEBUG
fprintf(stderr, "PASSWORD: %s\n", password);
#endif
} }
state_password=0; state_password=0;
} }