Date: Fri, 12 Feb 2010 15:07:24 +0000 (UTC) From: Ruslan Ermilov <ru@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r203799 - head/usr.bin/elf2aout Message-ID: <201002121507.o1CF7OU5048542@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002121507.o1CF7OU5048542>