summaryrefslogtreecommitdiffstats
path: root/usr.bin/ar/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/ar/misc.c')
-rw-r--r--usr.bin/ar/misc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/ar/misc.c b/usr.bin/ar/misc.c
index d182fa9..f9c0d14 100644
--- a/usr.bin/ar/misc.c
+++ b/usr.bin/ar/misc.c
@@ -35,7 +35,7 @@
*/
#ifndef lint
-static char sccsid[] = "@(#)misc.c 8.3 (Berkeley) 4/2/94";
+static char sccsid[] = "@(#)misc.c 8.4 (Berkeley) 4/27/95";
#endif /* not lint */
#include <sys/param.h>
@@ -136,7 +136,8 @@ void
badfmt()
{
- errx(1, "%s: %s", archive, strerror(EFTYPE));
+ errno = EFTYPE;
+ err(1, "%s", archive);
}
void
@@ -144,5 +145,5 @@ error(name)
char *name;
{
- errx(1, "%s", name);
+ err(1, "%s", name);
}
OpenPOWER on IntegriCloud