From: abbotti Date: Thu, 16 May 2002 17:38:30 +0000 (-0700) Subject: [svn] (download_child_p): Minor optimization to avoid unnecessary call to X-Git-Tag: v1.13~1759 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=83dc077b177c3ca3558217479d872ecc6e587936 [svn] (download_child_p): Minor optimization to avoid unnecessary call to schemes_are_similar_p function. Published in . --- diff --git a/src/ChangeLog b/src/ChangeLog index 8d309055..62d5956b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2002-05-16 Ian Abbott + + * recur.c (download_child_p): Minor optimization to avoid an + unnecessary additional call to schemes_are_similar_p function. + 2002-05-16 Ian Abbott * url.c (schemes_are_similar_p): New function to test enumerated diff --git a/src/recur.c b/src/recur.c index 7339c365..8458e48d 100644 --- a/src/recur.c +++ b/src/recur.c @@ -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"));