diff options
| author | Ruslan Ermilov <ru@FreeBSD.org> | 2010-02-12 15:07:24 +0000 |
|---|---|---|
| committer | Ruslan Ermilov <ru@FreeBSD.org> | 2010-02-12 15:07:24 +0000 |
| commit | a66d183c7bb1fd7fba2956e675d8abcdf32eb8ca (patch) | |
| tree | 0fd6a976fbfefdc530272086d94154f24d61d810 /usr.bin/elf2aout | |
| parent | 9dcae110dc19a28c5cc7fc4bb31234d08585d784 (diff) | |
Notes
Diffstat (limited to 'usr.bin/elf2aout')
| -rw-r--r-- | usr.bin/elf2aout/elf2aout.1 | 2 | ||||
| -rw-r--r-- | usr.bin/elf2aout/elf2aout.c | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/elf2aout/elf2aout.1 b/usr.bin/elf2aout/elf2aout.1 index 7b153e9b2432..0f4be221348d 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 4168f4e60560..7e1ece66deed 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); } |
