]> sjero.net Git - wget/blobdiff - src/recur.c
Fix build when libpsl is not available
[wget] / src / recur.c
index edf34d42525cbe39b269f1440e9454cbe58fab11..1121e5a721a1df618097e916fae652106e774237 100644 (file)
@@ -253,23 +253,23 @@ retrieve_tree (struct url *start_url_parsed, struct iri *pi)
          the second time.  */
       if (dl_url_file_map && hash_table_contains (dl_url_file_map, url))
         {
-         bool is_css_bool;
+          bool is_css_bool;
 
           file = xstrdup (hash_table_get (dl_url_file_map, url));
 
           DEBUGP (("Already downloaded \"%s\", reusing it from \"%s\".\n",
                    url, file));
 
-         if ((is_css_bool = (css_allowed
-                             && downloaded_css_set
-                             && string_set_contains (downloaded_css_set, file)))
-             || (html_allowed
-                 && downloaded_html_set
-                 && string_set_contains (downloaded_html_set, file)))
-           {
-             descend = true;
-             is_css = is_css_bool;
-           }
+          if ((is_css_bool = (css_allowed
+                  && downloaded_css_set
+                  && string_set_contains (downloaded_css_set, file)))
+              || (html_allowed
+                && downloaded_html_set
+                && string_set_contains (downloaded_html_set, file)))
+            {
+              descend = true;
+              is_css = is_css_bool;
+            }
         }
       else
         {
@@ -526,11 +526,13 @@ download_child_p (const struct urlpos *upos, struct url *parent, int depth,
      More time- and memory- consuming tests should be put later on
      the list.  */
 
+#ifdef HAVE_SSL
   if (opt.https_only && u->scheme != SCHEME_HTTPS)
     {
       DEBUGP (("Not following non-HTTPS links.\n"));
       goto out;
     }
+#endif
 
   /* Determine whether URL under consideration has a HTTP-like scheme. */
   u_scheme_like_http = schemes_are_similar_p (u->scheme, SCHEME_HTTP);