From 0b7fd4708093c872e2bcaeb5408a52a4823f06c5 Mon Sep 17 00:00:00 2001 From: Jason McIntyre Date: Sun, 18 Feb 2007 23:27:07 +0000 Subject: tidy up synopsis and usage(); from Igor Sobrado --- usr.sbin/ypbind/ypbind.8 | 14 +++++++------- usr.sbin/ypbind/ypbind.c | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/usr.sbin/ypbind/ypbind.8 b/usr.sbin/ypbind/ypbind.8 index db5e4e50d32..bbefe314cab 100644 --- a/usr.sbin/ypbind/ypbind.8 +++ b/usr.sbin/ypbind/ypbind.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: ypbind.8,v 1.19 2003/06/12 12:59:54 jmc Exp $ +.\" $OpenBSD: ypbind.8,v 1.20 2007/02/18 23:27:06 jmc Exp $ .\" $NetBSD: ypbind.8,v 1.2 1996/02/28 01:21:00 thorpej Exp $ .\" .\" Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -43,9 +43,9 @@ .Nd create and maintain a binding to a YP server .Sh SYNOPSIS .Nm ypbind +.Op Fl insecure .Op Fl ypset .Op Fl ypsetme -.Op Fl insecure .Sh DESCRIPTION .Nm finds the server for a particular YP domain and stores information about it @@ -89,6 +89,11 @@ marks the domain as bound and resumes its periodic check. .Pp The options are as follows: .Bl -tag -width Ds +.It Fl insecure +Permit binding to a +.Xr ypserv 8 +on a non-reserved port. +This is needed if receiving maps from SunOS 3.x or Ultrix. .It Fl ypset .Xr ypset 8 may be used to change the server to which a domain is bound. @@ -96,11 +101,6 @@ may be used to change the server to which a domain is bound. .Xr ypset 8 may be used only from this machine to change the server to which a domain is bound. -.It Fl insecure -permit binding to a -.Xr ypserv 8 -on a non-reserved port. -This is needed if receiving maps from SunOS 3.x or Ultrix. .El .Pp The diff --git a/usr.sbin/ypbind/ypbind.c b/usr.sbin/ypbind/ypbind.c index 34784cf0481..3cfc1d564a4 100644 --- a/usr.sbin/ypbind/ypbind.c +++ b/usr.sbin/ypbind/ypbind.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ypbind.c,v 1.55 2007/01/02 20:12:01 otto Exp $ */ +/* $OpenBSD: ypbind.c,v 1.56 2007/02/18 23:27:06 jmc Exp $ */ /* * Copyright (c) 1992, 1993, 1996, 1997, 1998 Theo de Raadt @@ -27,7 +27,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: ypbind.c,v 1.55 2007/01/02 20:12:01 otto Exp $"; +static char rcsid[] = "$OpenBSD: ypbind.c,v 1.56 2007/02/18 23:27:06 jmc Exp $"; #endif #include @@ -333,7 +333,7 @@ ypbindprog_2(struct svc_req *rqstp, SVCXPRT *transp) static void usage(void) { - fprintf(stderr, "usage: ypbind [-ypset] [-ypsetme] [-insecure]\n"); + fprintf(stderr, "usage: ypbind [-insecure] [-ypset] [-ypsetme]\n"); exit(0); } -- cgit v1.2.3