summaryrefslogtreecommitdiffstats
path: root/usr.sbin/yppoll
diff options
context:
space:
mode:
authorjmc <jmc@openbsd.org>2007-02-18 23:22:33 +0000
committerjmc <jmc@openbsd.org>2007-02-18 23:22:33 +0000
commitc25d71fca3ee8afb689cd148e7d325b80c6f3f9f (patch)
tree1c2aa47c782535e73175025aac69e945c37f62bb /usr.sbin/yppoll
parenttidy up synopsis and usage(); partly from Igor Sobrado (diff)
downloadwireguard-openbsd-c25d71fca3ee8afb689cd148e7d325b80c6f3f9f.tar.xz
wireguard-openbsd-c25d71fca3ee8afb689cd148e7d325b80c6f3f9f.zip
tidy up synopsis and usage(); from Igor Sobrado
Diffstat (limited to 'usr.sbin/yppoll')
-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);
}