From 83dc077b177c3ca3558217479d872ecc6e587936 Mon Sep 17 00:00:00 2001 From: abbotti Date: Thu, 16 May 2002 10:38:30 -0700 Subject: [PATCH] [svn] (download_child_p): Minor optimization to avoid unnecessary call to schemes_are_similar_p function. Published in . --- src/ChangeLog | 5 +++++ src/recur.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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")); -- 2.39.2