diff options
author | charnier <charnier@FreeBSD.org> | 1997-10-27 12:25:38 +0000 |
---|---|---|
committer | charnier <charnier@FreeBSD.org> | 1997-10-27 12:25:38 +0000 |
commit | 5a5312b885f93b3a0d128c5cb83d95fefd341fb8 (patch) | |
tree | 0713199f04b15cf09c730353dc709b5a77ce4285 /usr.sbin/wormcontrol/wormcontrol.c | |
parent | a603ec5bf993a633c73d5c8234d810eeb6d492b1 (diff) | |
download | FreeBSD-src-5a5312b885f93b3a0d128c5cb83d95fefd341fb8.zip FreeBSD-src-5a5312b885f93b3a0d128c5cb83d95fefd341fb8.tar.gz |
One line usage string: see man page for more info.
Diffstat (limited to 'usr.sbin/wormcontrol/wormcontrol.c')
-rw-r--r-- | usr.sbin/wormcontrol/wormcontrol.c | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/usr.sbin/wormcontrol/wormcontrol.c b/usr.sbin/wormcontrol/wormcontrol.c index 49b44e8..5f7aff2 100644 --- a/usr.sbin/wormcontrol/wormcontrol.c +++ b/usr.sbin/wormcontrol/wormcontrol.c @@ -31,33 +31,29 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH * DAMAGE. - * - * $Id: wormcontrol.c,v 1.5 1997/03/31 05:11:40 imp Exp $ - * */ +#ifndef lint +static const char rcsid[] = + "$Id$"; +#endif /* not lint */ + +#include <err.h> +#include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <unistd.h> -#include <fcntl.h> -#include <err.h> #include <sysexits.h> +#include <unistd.h> #include <sys/ioctl.h> #include <sys/wormio.h> - -void -usage(void) +static void +usage() { - errx(EX_USAGE, - "usage: wormcontrol [-f device] command [args]\n" - "commands:\n" - " select vendor-id model-id\n" - " prepdisk [dummy] single|double\n" - " track audio|data [preemp]\n" - " fixate toc-type [onp]\n"); + fprintf(stderr,"usage: wormcontrol [-f device] command [args]\n"); + exit(EX_USAGE); } #define eq(a, b) (strcmp(a, b) == 0) |