summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2007-02-18 23:37:54 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2007-02-18 23:37:54 +0000
commit54bfa8c9a3c39230736bb326064d6091ba531504 (patch)
treede798636e70bc4c81f94c3439f7dae131fb7051c
parentd836fb2eb3185316abc2aaadfaee8e34d8340e38 (diff)
tidy up synopsis and usage(); from Igor Sobrado
-rw-r--r--usr.sbin/ypset/ypset.812
-rw-r--r--usr.sbin/ypset/ypset.c6
2 files changed, 9 insertions, 9 deletions
diff --git a/usr.sbin/ypset/ypset.8 b/usr.sbin/ypset/ypset.8
index c9b22bc38d2..3c3425ad59a 100644
--- a/usr.sbin/ypset/ypset.8
+++ b/usr.sbin/ypset/ypset.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ypset.8,v 1.6 2001/08/02 18:37:35 mpech Exp $
+.\" $OpenBSD: ypset.8,v 1.7 2007/02/18 23:37:53 jmc Exp $
.\" $NetBSD: ypset.8,v 1.2 1996/02/28 01:25:08 thorpej Exp $
.\"
.\" Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -45,8 +45,8 @@
which YP server process to use
.Sh SYNOPSIS
.Nm ypset
-.Op Fl h Ar host
.Op Fl d Ar domain
+.Op Fl h Ar host
.Ar server
.Sh DESCRIPTION
.Nm
@@ -69,15 +69,15 @@ the local network supplying YP maps.
.Pp
The options are as follows:
.Bl -tag -width Ds
-.It Fl h Ar host
-Set the YP binding on
-.Ar host
-instead of the local machine.
.It Fl d Ar domain
Use the YP domain
.Ar domain
instead of the default domain as returned by
.Xr domainname 1 .
+.It Fl h Ar host
+Set the YP binding on
+.Ar host
+instead of the local machine.
.El
.Sh SEE ALSO
.Xr domainname 1 ,
diff --git a/usr.sbin/ypset/ypset.c b/usr.sbin/ypset/ypset.c
index cbb74b45b14..0b2cb85e55c 100644
--- a/usr.sbin/ypset/ypset.c
+++ b/usr.sbin/ypset/ypset.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ypset.c,v 1.16 2007/01/02 20:13:28 otto Exp $ */
+/* $OpenBSD: ypset.c,v 1.17 2007/02/18 23:37:53 jmc Exp $ */
/* $NetBSD: ypset.c,v 1.8 1996/05/13 02:46:33 thorpej Exp $ */
/*
@@ -28,7 +28,7 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: ypset.c,v 1.16 2007/01/02 20:13:28 otto Exp $";
+static char rcsid[] = "$OpenBSD: ypset.c,v 1.17 2007/02/18 23:37:53 jmc Exp $";
#endif
#include <sys/param.h>
@@ -50,7 +50,7 @@ static char rcsid[] = "$OpenBSD: ypset.c,v 1.16 2007/01/02 20:13:28 otto Exp $";
static void
usage(void)
{
- fprintf(stderr, "usage: ypset [-h host ] [-d domain] server\n");
+ fprintf(stderr, "usage: ypset [-d domain] [-h host] server\n");
exit(1);
}