summaryrefslogtreecommitdiff
path: root/usr.bin/ypmatch/ypmatch.c
diff options
context:
space:
mode:
authorIgor Sobrado <sobrado@cvs.openbsd.org>2008-06-01 21:45:09 +0000
committerIgor Sobrado <sobrado@cvs.openbsd.org>2008-06-01 21:45:09 +0000
commitad991276c6489ed7c4ed1a12404b202c46bedb45 (patch)
treef227e23fb1be21ce88069375ee3bfb9e41819219 /usr.bin/ypmatch/ypmatch.c
parenta6ebaab2b2767a2887965914c7e0bb47ae4bf68b (diff)
sort flags; synchronize synopsis and usage; style(9).
tweaked by jmc@, thanks! ok jmc@
Diffstat (limited to 'usr.bin/ypmatch/ypmatch.c')
-rw-r--r--usr.bin/ypmatch/ypmatch.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/usr.bin/ypmatch/ypmatch.c b/usr.bin/ypmatch/ypmatch.c
index caaaa9e89f6..d8baa8bdf34 100644
--- a/usr.bin/ypmatch/ypmatch.c
+++ b/usr.bin/ypmatch/ypmatch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ypmatch.c,v 1.12 2006/04/02 01:49:19 deraadt Exp $ */
+/* $OpenBSD: ypmatch.c,v 1.13 2008/06/01 21:45:08 sobrado Exp $ */
/* $NetBSD: ypmatch.c,v 1.8 1996/05/07 01:24:52 jtc Exp $ */
/*
@@ -28,7 +28,7 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: ypmatch.c,v 1.12 2006/04/02 01:49:19 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: ypmatch.c,v 1.13 2008/06/01 21:45:08 sobrado Exp $";
#endif
#include <sys/param.h>
@@ -63,14 +63,15 @@ struct ypalias {
void
usage(void)
{
- fprintf(stderr, "Usage:\n");
- fprintf(stderr, "\typmatch [-d domain] [-t] [-k] key [key ...] mname\n");
- fprintf(stderr, "\typmatch -x\n");
- fprintf(stderr, "where\n");
- fprintf(stderr, "\tmname may be either a mapname or a nickname for a map\n");
- fprintf(stderr, "\t-t inhibits map nickname translation\n");
- fprintf(stderr, "\t-k prints keys as well as values.\n");
- fprintf(stderr, "\t-x dumps the map nickname translation table.\n");
+ fprintf(stderr,
+ "usage: ypmatch [-kt] [-d domain] key ... mapname\n"
+ " ypmatch -x\n");
+ fprintf(stderr,
+ "where\n"
+ "\tmapname may be either a mapname or a nickname for a map.\n"
+ "\t-k prints keys as well as values.\n"
+ "\t-t inhibits map nickname translation.\n"
+ "\t-x dumps the map nickname translation table.\n");
exit(1);
}