Signed-off-by: Pere Orga <gotrunks@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
progress_meter(PROGRESS_END);
}
-static int download_one_url(const char *url)
+static void download_one_url(const char *url)
{
bool use_proxy; /* Use proxies if env vars are set */
int redir_limit;
free(server.allocated);
free(target.allocated);
free(fname_out_alloc);
-
- return EXIT_SUCCESS;
}
int wget_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
;
#endif
- int exitcode;
#if ENABLE_FEATURE_WGET_LONG_OPTIONS
llist_t *headers_llist = NULL;
#endif
G.o_flags = O_WRONLY | O_CREAT | O_TRUNC;
}
- exitcode = 0;
while (*argv)
- exitcode |= download_one_url(*argv++);
+ download_one_url(*argv++);
if (G.output_fd >= 0)
xclose(G.output_fd);
- return exitcode;
+ return EXIT_SUCCESS;
}