From a66d183c7bb1fd7fba2956e675d8abcdf32eb8ca Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Fri, 12 Feb 2010 15:07:24 +0000 Subject: [PATCH] Make manpage's SYNOPSIS match program's usage(). Submitted by: Alexander Best (manpage) --- usr.bin/elf2aout/elf2aout.1 | 2 +- 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 #include +#include +#include #include #include @@ -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); }