Author: ru Date: Fri Feb 12 15:07:24 2010 New Revision: 203799 URL: http://svn.freebsd.org/changeset/base/203799
Log: Make manpage's SYNOPSIS match program's usage(). Submitted by: Alexander Best (manpage) Modified: head/usr.bin/elf2aout/elf2aout.1 head/usr.bin/elf2aout/elf2aout.c Modified: head/usr.bin/elf2aout/elf2aout.1 ============================================================================== --- head/usr.bin/elf2aout/elf2aout.1 Fri Feb 12 14:50:21 2010 (r203798) +++ head/usr.bin/elf2aout/elf2aout.1 Fri Feb 12 15:07:24 2010 (r203799) @@ -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 Modified: head/usr.bin/elf2aout/elf2aout.c ============================================================================== --- head/usr.bin/elf2aout/elf2aout.c Fri Feb 12 14:50:21 2010 (r203798) +++ head/usr.bin/elf2aout/elf2aout.c Fri Feb 12 15:07:24 2010 (r203799) @@ -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); } _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"