summaryrefslogtreecommitdiff
path: root/binutils/bucomm.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2010-10-05 22:48:34 +0000
committerAlan Modra <amodra@bigpond.net.au>2010-10-05 22:48:34 +0000
commit169d6d05c4a00aa366566c9cd440d33387c76979 (patch)
tree241d8509dca77e2aa51cb2f23346ea2e10964388 /binutils/bucomm.c
parenteddab894996aa50bf7392407556c8a52236a72a8 (diff)
downloadbinutils-redhat-169d6d05c4a00aa366566c9cd440d33387c76979.tar.gz
* bucomm.c (bfd_nonfatal, bfd_nonfatal_message): Don't clobber errno.
Diffstat (limited to 'binutils/bucomm.c')
-rw-r--r--binutils/bucomm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/binutils/bucomm.c b/binutils/bucomm.c
index ccde4bc962..b30c2c519b 100644
--- a/binutils/bucomm.c
+++ b/binutils/bucomm.c
@@ -54,8 +54,8 @@ bfd_nonfatal (const char *string)
{
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
@@ -84,8 +84,8 @@ bfd_nonfatal_message (const char *filename,
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);