** Fix a memory leak problem in the GNU TLS backend.
** Autoreconf works again for distributed tarballs.
+
+** Print some diagnostic messages to stderr not to stdout.
\f
* Changes in Wget 1.13.4
2012-02-23 Giuseppe Scrivano <giuseppe@southpole.se>
+ * main.c (main): Write diagnostic messages to `stderr' not to `stdout'.
+
* main.c (main): Fail gracefully if `malloc' fails.
* gnutls.c (wgnutls_read): Remove unused variables `timer' and `flags'.
}
if (!userrc_ret)
{
- printf ("Exiting due to error in %s\n", optarg);
+ fprintf (stderr, "Exiting due to error in %s\n", optarg);
exit (2);
}
else
{
if (ret == '?')
{
- print_usage (0);
- printf ("\n");
- printf (_("Try `%s --help' for more options.\n"), exec_name);
+ print_usage (1);
+ fprintf (stderr, "\n");
+ fprintf (stderr, _("Try `%s --help' for more options.\n"),
+ exec_name);
exit (2);
}
/* Find the short option character in the mapping. */
/* No URL specified. */
fprintf (stderr, _("%s: missing URL\n"), exec_name);
print_usage (1);
- printf ("\n");
+ fprintf (stderr, "\n");
/* #### Something nicer should be printed here -- similar to the
pre-1.5 `--help' page. */
fprintf (stderr, _("Try `%s --help' for more options.\n"), exec_name);