summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2007-02-18 23:32:03 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2007-02-18 23:32:03 +0000
commit1584276d55cfa30327baf9239d29b565d04dffec (patch)
tree8fe12b767928496365861b33a0696c06b87a68d8 /usr.sbin
parent0b7fd4708093c872e2bcaeb5408a52a4823f06c5 (diff)
tidy up synopsis and usage(); from Igor Sobrado
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/yppoll/yppoll.814
-rw-r--r--usr.sbin/yppoll/yppoll.c6
2 files changed, 10 insertions, 10 deletions
diff --git a/usr.sbin/yppoll/yppoll.8 b/usr.sbin/yppoll/yppoll.8
index 61176da39ea..514c0ad6e3f 100644
--- a/usr.sbin/yppoll/yppoll.8
+++ b/usr.sbin/yppoll/yppoll.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: yppoll.8,v 1.5 2000/11/09 17:53:29 aaron Exp $
+.\" $OpenBSD: yppoll.8,v 1.6 2007/02/18 23:32:02 jmc Exp $
.\" $NetBSD: yppoll.8,v 1.3 1996/02/28 01:23:12 thorpej Exp $
.\"
.\" Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -43,8 +43,8 @@
.Nd ask version of YP map from YP server
.Sh SYNOPSIS
.Nm yppoll
-.Op Fl h Ar host
.Op Fl d Ar domain
+.Op Fl h Ar host
.Ar mapname
.Sh DESCRIPTION
.Nm
@@ -54,6 +54,11 @@ server for
.Pp
The options are as follows:
.Bl -tag -width Ds
+.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
Ask the YP server process running on
.Ar host
@@ -63,11 +68,6 @@ If
.Ar host
is not specified, the server polled is the default server returned by
.Xr ypwhich 1 .
-.It Fl d Ar domain
-Use the YP domain
-.Ar domain
-instead of the default domain as returned by
-.Xr domainname 1 .
.El
.Sh SEE ALSO
.Xr domainname 1 ,
diff --git a/usr.sbin/yppoll/yppoll.c b/usr.sbin/yppoll/yppoll.c
index 901cce7ee53..936a01c37d3 100644
--- a/usr.sbin/yppoll/yppoll.c
+++ b/usr.sbin/yppoll/yppoll.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: yppoll.c,v 1.10 2003/12/10 19:44:06 deraadt Exp $ */
+/* $OpenBSD: yppoll.c,v 1.11 2007/02/18 23:32:02 jmc Exp $ */
/* $NetBSD: yppoll.c,v 1.5 1996/05/13 02:46:36 thorpej Exp $ */
/*
@@ -32,7 +32,7 @@
*/
#ifndef lint
-static char rcsid[] = "$Id: yppoll.c,v 1.10 2003/12/10 19:44:06 deraadt Exp $";
+static char rcsid[] = "$Id: yppoll.c,v 1.11 2007/02/18 23:32:02 jmc Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -55,7 +55,7 @@ static char rcsid[] = "$Id: yppoll.c,v 1.10 2003/12/10 19:44:06 deraadt Exp $";
static void
usage(void)
{
- fprintf(stderr, "Usage: yppoll [-h host] [-d domainname] mapname\n");
+ fprintf(stderr, "usage: yppoll [-d domain] [-h host] mapname\n");
exit(1);
}