summaryrefslogtreecommitdiffstats
path: root/usr.bin/elf2aout
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2010-02-12 15:07:24 +0000
committerru <ru@FreeBSD.org>2010-02-12 15:07:24 +0000
commitb0758cc42c85a9ee2c2ee046020831a2c4afa3f6 (patch)
tree0fd6a976fbfefdc530272086d94154f24d61d810 /usr.bin/elf2aout
parentf2eeadb198afb89ff67c9589eff8c717036632d2 (diff)
downloadFreeBSD-src-b0758cc42c85a9ee2c2ee046020831a2c4afa3f6.zip
FreeBSD-src-b0758cc42c85a9ee2c2ee046020831a2c4afa3f6.tar.gz
Make manpage's SYNOPSIS match program's usage().
Submitted by: Alexander Best (manpage)
Diffstat (limited to 'usr.bin/elf2aout')
-rw-r--r--usr.bin/elf2aout/elf2aout.12
-rw-r--r--usr.bin/elf2aout/elf2aout.c5
2 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/elf2aout/elf2aout.1 b/usr.bin/elf2aout/elf2aout.1
index 7b153e9..0f4be22 100644
--- a/usr.bin/elf2aout/elf2aout.1
+++ b/usr.bin/elf2aout/elf2aout.1
@@ -32,7 +32,7 @@
.Nd "Convert ELF binary to a.out format"
.Sh SYNOPSIS
.Nm
-.Op Fl o outfile
+.Op Fl o Ar outfile
.Ar infile
.Sh DESCRIPTION
The
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