+2010-10-06 Alan Modra <amodra@gmail.com>
+
+ * bucomm.c (bfd_nonfatal, bfd_nonfatal_message): Don't clobber errno.
+
2010-10-05 Alan Modra <amodra@gmail.com>
* bucomm.c (bfd_nonfatal): Flush stdout before output to stderr.
{
const char *errmsg;
- fflush (stdout);
errmsg = bfd_errmsg (bfd_get_error ());
+ fflush (stdout);
if (string)
fprintf (stderr, "%s: %s: %s\n", program_name, string, errmsg);
else
const char *section_name;
va_list args;
- fflush (stdout);
errmsg = bfd_errmsg (bfd_get_error ());
+ fflush (stdout);
section_name = NULL;
va_start (args, format);
fprintf (stderr, "%s", program_name);