[svn] retr.c: Changed semantics of no_proxy_match.

This commit is contained in:
mtortonesi 2005-10-05 02:46:07 -07:00
parent 8c69427125
commit 1ff7c1fa70
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2005-10-05 Mauro Tortonesi <mauro@ferrara.linux.it>
* retr.c: Changed semantics of no_proxy_match.
2005-09-17 Hrvoje Niksic <hniksic@xemacs.org>
* main.c (main): Don't print the summary if nothing has been downloaded.

View File

@ -978,7 +978,7 @@ getproxy (struct url *u)
if (!opt.use_proxy)
return NULL;
if (!no_proxy_match (u->host, (const char **)opt.no_proxy))
if (no_proxy_match (u->host, (const char **)opt.no_proxy))
return NULL;
switch (u->scheme)
@ -1018,7 +1018,7 @@ static bool
no_proxy_match (const char *host, const char **no_proxy)
{
if (!no_proxy)
return true;
return false;
else
return !sufmatch (no_proxy, host);
return sufmatch (no_proxy, host);
}