aboutsummaryrefslogtreecommitdiff
path: root/binutils/ar.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2000-04-07 04:34:50 +0000
committerAlan Modra <amodra@gmail.com>2000-04-07 04:34:50 +0000
commit37cc8ec1be0959c1878e79fd2baed888da4a2775 (patch)
tree3f0c84ec0246e8da024b05540c58b082c583dd31 /binutils/ar.c
parentd311cd50fc8c3fc9b344cc2a893572d6c0ae44d7 (diff)
downloadgdb-37cc8ec1be0959c1878e79fd2baed888da4a2775.zip
gdb-37cc8ec1be0959c1878e79fd2baed888da4a2775.tar.gz
gdb-37cc8ec1be0959c1878e79fd2baed888da4a2775.tar.bz2
A mostly cosmetic tidy up of warnings and error message reporting.
Diffstat (limited to 'binutils/ar.c')
-rw-r--r--binutils/ar.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/binutils/ar.c b/binutils/ar.c
index 045adec..17388a4 100644
--- a/binutils/ar.c
+++ b/binutils/ar.c
@@ -1,5 +1,5 @@
/* ar.c - Archive modify and extract.
- Copyright 1991, 92, 93, 94, 95, 96, 97, 98, 1999
+ Copyright 1991, 92, 93, 94, 95, 96, 97, 98, 99, 2000
Free Software Foundation, Inc.
This file is part of GNU Binutils.
@@ -538,7 +538,7 @@ main (argc, argv)
break;
default:
/* xgettext:c-format */
- fprintf (stderr, _("%s: illegal option -- %c\n"), program_name, c);
+ non_fatal (_("illegal option -- %c"), c);
usage (0);
}
}
@@ -583,7 +583,7 @@ main (argc, argv)
if (counted_name_mode)
{
if (operation != extract && operation != delete)
- fatal (_("`N' is only meaningful with the `x' and 'd' options."));
+ fatal (_("`N' is only meaningful with the `x' and `d' options."));
counted_name_counter = atoi (argv[arg_index++]);
if (counted_name_counter <= 0)
fatal (_("Value for `N' must be positive."));
@@ -669,9 +669,7 @@ main (argc, argv)
/* Shouldn't happen! */
default:
/* xgettext:c-format */
- fprintf (stderr, _("%s: internal error -- this option not implemented\n"),
- program_name);
- xexit (1);
+ fatal (_("internal error -- this option not implemented"));
}
}
@@ -971,8 +969,7 @@ do_quick_append (archive_filename, files_to_append)
fwrite (ARMAG, 1, SARMAG, ofile);
if (!silent_create)
/* xgettext:c-format */
- fprintf (stderr, _("%s: creating %s\n"),
- program_name, archive_filename);
+ non_fatal (_("creating %s"), archive_filename);
}
if (ar_truncate)
@@ -1230,9 +1227,8 @@ move_members (arch, files_to_move)
current_ptr_ptr = &((*current_ptr_ptr)->next);
}
/* xgettext:c-format */
- fprintf (stderr, _("%s: no entry %s in archive %s!\n"),
- program_name, *files_to_move, arch->filename);
- xexit (1);
+ fatal (_("no entry %s in archive %s!"), *files_to_move, arch->filename);
+
next_file:;
}