]> sjero.net Git - wget/commitdiff
[svn] (download_child_p): Minor optimization to avoid unnecessary call to
authorabbotti <devnull@localhost>
Thu, 16 May 2002 17:38:30 +0000 (10:38 -0700)
committerabbotti <devnull@localhost>
Thu, 16 May 2002 17:38:30 +0000 (10:38 -0700)
schemes_are_similar_p function.
Published in <kvq7eu4okekh2ohb0rdvavt16nbgb02v00@farscape.privy.mev.co.uk>.

src/ChangeLog
src/recur.c

index 8d3090554ec53cc4d65cf28900bee3e129ba4634..62d5956b0dfcc397ba7ab8545430ccd65d624919 100644 (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
index 7339c36533bc3826eb0839c8aa5f54033b512408..8458e48d0c72213c073a6eff192fc370424b9d17 100644 (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"));