summaryrefslogtreecommitdiff
path: root/sbin/ncheck_ffs
diff options
context:
space:
mode:
authorIgor Sobrado <sobrado@cvs.openbsd.org>2007-08-06 19:16:08 +0000
committerIgor Sobrado <sobrado@cvs.openbsd.org>2007-08-06 19:16:08 +0000
commitd569c9b0c585d1ada0bb33679611b77eba528140 (patch)
treeaf2426db3e795320f587d155021169a3f1700b3e /sbin/ncheck_ffs
parent602a7968e47e34fd38658741b7b66d3c9115f9cf (diff)
the ellipsis is not an optional argument; while here, sync the usage
and synopsis of commands lots of good ideas by jmc@ ok jmc@
Diffstat (limited to 'sbin/ncheck_ffs')
-rw-r--r--sbin/ncheck_ffs/ncheck_ffs.88
-rw-r--r--sbin/ncheck_ffs/ncheck_ffs.c7
2 files changed, 8 insertions, 7 deletions
diff --git a/sbin/ncheck_ffs/ncheck_ffs.8 b/sbin/ncheck_ffs/ncheck_ffs.8
index 1802ef97234..a39862dc9dd 100644
--- a/sbin/ncheck_ffs/ncheck_ffs.8
+++ b/sbin/ncheck_ffs/ncheck_ffs.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ncheck_ffs.8,v 1.21 2007/05/31 19:19:46 jmc Exp $
+.\" $OpenBSD: ncheck_ffs.8,v 1.22 2007/08/06 19:16:05 sobrado Exp $
.\"
.\" Copyright (c) 1995, 1996 SigmaSoft, Th. Lockert <tholo@sigmasoft.com>
.\" All rights reserved.
@@ -23,7 +23,7 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: May 31 2007 $
+.Dd $Mdocdate: August 6 2007 $
.Dt NCHECK_FFS 8
.Os
.Sh NAME
@@ -33,7 +33,7 @@
.Nm ncheck_ffs
.Op Fl ams
.Op Fl f Ar format
-.Op Fl i Ar number Op Ar ...
+.Op Fl i Ar number ...
.Ar filesystem
.Sh DESCRIPTION
.Nm
@@ -110,7 +110,7 @@ the character following the backslash.
The device name is not printed on the first line of output when the
.Fl f
option is specified.
-.It Fl i Ar number Op Ar ...
+.It Fl i Ar number ...
Report only those files whose inode numbers are as listed.
.It Fl m
Give more verbose information on inodes.
diff --git a/sbin/ncheck_ffs/ncheck_ffs.c b/sbin/ncheck_ffs/ncheck_ffs.c
index 04fb1a04582..cfc38226b15 100644
--- a/sbin/ncheck_ffs/ncheck_ffs.c
+++ b/sbin/ncheck_ffs/ncheck_ffs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ncheck_ffs.c,v 1.32 2007/07/09 17:12:17 thib Exp $ */
+/* $OpenBSD: ncheck_ffs.c,v 1.33 2007/08/06 19:16:05 sobrado Exp $ */
/*-
* Copyright (c) 1995, 1996 SigmaSoft, Th. Lockert <tholo@sigmasoft.com>
@@ -55,7 +55,7 @@
*/
#ifndef lint
-static const char rcsid[] = "$OpenBSD: ncheck_ffs.c,v 1.32 2007/07/09 17:12:17 thib Exp $";
+static const char rcsid[] = "$OpenBSD: ncheck_ffs.c,v 1.33 2007/08/06 19:16:05 sobrado Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -484,7 +484,8 @@ usage(void)
{
extern char *__progname;
- fprintf(stderr, "usage: %s [-ams] [-f format] [-i number [...]] filesystem\n",
+ fprintf(stderr,
+ "usage: %s [-ams] [-f format] [-i number ...] filesystem\n",
__progname);
exit(3);
}