summaryrefslogtreecommitdiffstats
path: root/usr.bin/elf2aout/elf2aout.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/elf2aout/elf2aout.c')
-rw-r--r--usr.bin/elf2aout/elf2aout.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/elf2aout/elf2aout.c b/usr.bin/elf2aout/elf2aout.c
index 4168f4e..7e1ece6 100644
--- a/usr.bin/elf2aout/elf2aout.c
+++ b/usr.bin/elf2aout/elf2aout.c
@@ -35,6 +35,8 @@ __FBSDID("$FreeBSD$");
#include <err.h>
#include <fcntl.h>
+#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <unistd.h>
@@ -155,5 +157,6 @@ static void
usage(void)
{
- errx(1, "usage: elf2aout [-o outfile] infile");
+ fprintf(stderr, "usage: elf2aout [-o outfile] infile\n");
+ exit(1);
}
OpenPOWER on IntegriCloud