Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/fdformat don't use errx() in usage
details: https://anonhg.NetBSD.org/src/rev/1245636e5d1e
branches: trunk
changeset: 503373:1245636e5d1e
user: christos <christos%NetBSD.org@localhost>
date: Mon Feb 05 01:45:32 2001 +0000
description:
don't use errx() in usage
fix nested extern
diffstat:
usr.bin/fdformat/fdformat.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r e021c57e2669 -r 1245636e5d1e usr.bin/fdformat/fdformat.c
--- a/usr.bin/fdformat/fdformat.c Mon Feb 05 01:44:07 2001 +0000
+++ b/usr.bin/fdformat/fdformat.c Mon Feb 05 01:45:32 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fdformat.c,v 1.6 1999/01/13 21:00:16 hubertf Exp $ */
+/* $NetBSD: fdformat.c,v 1.7 2001/02/05 01:45:32 christos Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -72,6 +72,8 @@
void usage __P((void));
int verify_track(int, int, int, struct fdformat_parms *, char *);
+extern char *__progname;
+
int
confirm(int def)
{
@@ -117,9 +119,8 @@
void
usage(void)
{
- extern char *__progname;
-
- errx(1,"Usage: %s [-f device] [-t type] [-n] [-B nbps] [-S nspt]\n\t[-T ntrk] [-C ncyl] [-P stepspercyl] [-G gaplen]\n\t[-F fillbyte] [-X xfer_rate] [-I interleave]\n", __progname);
+ fprintf(stderr, "Usage: %s [-f device] [-t type] [-n] [-B nbps] [-S nspt]\n\t[-T ntrk] [-C ncyl] [-P stepspercyl] [-G gaplen]\n\t[-F fillbyte] [-X xfer_rate] [-I interleave]\n", __progname);
+ exit(1);
}
#define numarg(which, maskn) \
Home |
Main Index |
Thread Index |
Old Index