X-Git-Url: http://sjero.net/git/?a=blobdiff_plain;f=src%2Fmain.c;h=4c2eb45b29286945bc1ea1e1c14e591537860d6d;hb=b1838bdfd197ec970d834ce5042995df92516841;hp=94a33e75a25aae2af1ce8f3c6bdb3beb86adefb5;hpb=aa2f287c68a9c45329dad97700fa562c4207b9ce;p=wget diff --git a/src/main.c b/src/main.c index 94a33e75..4c2eb45b 100644 --- a/src/main.c +++ b/src/main.c @@ -56,7 +56,6 @@ as that of the covered work. */ #include "http.h" /* for save_cookies */ #include "ptimer.h" #include "warc.h" -#include "closeout.h" #include #include #include @@ -982,8 +981,6 @@ main (int argc, char **argv) i18n_initialize (); - atexit (close_stdout); - /* Construct the name of the executable, without the directory part. */ #ifdef __VMS /* On VMS, lose the "dev:[dir]" prefix and the ".EXE;nnn" suffix. */ @@ -1052,7 +1049,7 @@ main (int argc, char **argv) } if (!userrc_ret) { - fprintf (stderr, "Exiting due to error in %s\n", optarg); + fprintf (stderr, _("Exiting due to error in %s\n"), optarg); exit (2); } else @@ -1191,7 +1188,7 @@ main (int argc, char **argv) { fprintf (stderr, _("Both --no-clobber and --convert-links were specified," - "only --convert-links will be used.\n")); + " only --convert-links will be used.\n")); opt.noclobber = false; } @@ -1629,14 +1626,6 @@ outputting to a regular file.\n")); if (opt.convert_links && !opt.delete_after) convert_all_links (); - /* Close WARC file. */ - if (opt.warc_filename != 0) - warc_close (); - - log_close (); - - for (i = 0; i < nurl; i++) - xfree (url[i]); cleanup (); exit (get_exit_status ());