#include "http.h" /* for save_cookies */
#include "ptimer.h"
#include "warc.h"
-#include "closeout.h"
#include <getopt.h>
#include <getpass.h>
#include <quote.h>
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. */
}
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
{
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;
}
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 ());