X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fmain.c;h=9bf80465dc3b75274d16f296c5e9968e8f220cb6;hp=a6dfbd65593e9bb73fb84679830014327f129317;hb=2447fb9a9b85083c1e6fa54d0a18bdf3962fab1f;hpb=40fc711db6ebc891e41f15d2052847432e991a21 diff --git a/src/main.c b/src/main.c index a6dfbd65..9bf80465 100644 --- a/src/main.c +++ b/src/main.c @@ -51,6 +51,7 @@ so, delete this exception statement from your version. */ #include "url.h" #include "progress.h" /* for progress_handle_sigwinch */ #include "convert.h" +#include "http.h" /* for save_cookies */ /* On GNU system this will include system-wide getopt.h. */ #include "getopt.h" @@ -63,8 +64,6 @@ struct options opt; extern char *version_string; -extern struct cookie_jar *wget_cookie_jar; - static void redirect_output_signal (int); const char *exec_name; @@ -123,7 +122,7 @@ struct cmdline_option { int argtype; /* for non-standard options */ }; -struct cmdline_option option_data[] = +static struct cmdline_option option_data[] = { { "accept", 'A', OPT_VALUE, "accept", -1 }, { "append-output", 'a', OPT__APPEND_OUTPUT, NULL, required_argument }, @@ -896,9 +895,6 @@ Can't timestamp and not clobber old files at the same time.\n")); /* Open the output filename if necessary. */ if (opt.output_document) { - extern FILE *output_stream; - extern bool output_stream_regular; - if (HYPHENP (opt.output_document)) output_stream = stdout; else