[svn] (download_child_p): Minor optimization to avoid unnecessary call to

schemes_are_similar_p function.
Published in <kvq7eu4okekh2ohb0rdvavt16nbgb02v00@farscape.privy.mev.co.uk>.
This commit is contained in:
abbotti 2002-05-16 10:38:30 -07:00
parent e863a6323b
commit 83dc077b17
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-05-16 Ian Abbott <abbotti@mev.co.uk>
* recur.c (download_child_p): Minor optimization to avoid an
unnecessary additional call to schemes_are_similar_p function.
2002-05-16 Ian Abbott <abbotti@mev.co.uk>
* url.c (schemes_are_similar_p): New function to test enumerated

View File

@ -458,7 +458,7 @@ download_child_p (const struct urlpos *upos, struct url *parent, int depth,
/* 2. If it is an absolute link and they are not followed, throw it
out. */
if (schemes_are_similar_p (u->scheme, SCHEME_HTTP))
if (u_scheme_like_http)
if (opt.relative_only && !upos->link_relative_p)
{
DEBUGP (("It doesn't really look like a relative link.\n"));