Module Name: src
Committed By: mbalmer
Date: Mon Dec 21 08:42:39 UTC 2009
Modified Files:
src/usr.sbin/wake: wake.8 wake.c
Log Message:
Fix synopsis to make it clear that at least one lladdr is required.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/usr.sbin/wake/wake.8
cvs rdiff -u -r1.8 -r1.9 src/usr.sbin/wake/wake.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/wake/wake.8
diff -u src/usr.sbin/wake/wake.8:1.3 src/usr.sbin/wake/wake.8:1.4
--- src/usr.sbin/wake/wake.8:1.3 Thu Aug 6 22:01:36 2009
+++ src/usr.sbin/wake/wake.8 Mon Dec 21 08:42:39 2009
@@ -1,4 +1,4 @@
-.\" $NetBSD: wake.8,v 1.3 2009/08/06 22:01:36 wiz Exp $
+.\" $NetBSD: wake.8,v 1.4 2009/12/21 08:42:39 mbalmer Exp $
.\"
.\" Copyright (c) 2009 Marc Balmer <[email protected]>
.\"
@@ -14,7 +14,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd February 2, 2009
+.Dd December 21, 2009
.Dt WAKE 8
.Os
.Sh NAME
@@ -23,6 +23,7 @@
.Sh SYNOPSIS
.Nm
.Ar interface
+.Ar lladdr
.Op Ar lladdr ...
.Sh DESCRIPTION
The
Index: src/usr.sbin/wake/wake.c
diff -u src/usr.sbin/wake/wake.c:1.8 src/usr.sbin/wake/wake.c:1.9
--- src/usr.sbin/wake/wake.c:1.8 Sat Jul 18 08:35:19 2009
+++ src/usr.sbin/wake/wake.c Mon Dec 21 08:42:39 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: wake.c,v 1.8 2009/07/18 08:35:19 mbalmer Exp $ */
+/* $NetBSD: wake.c,v 1.9 2009/12/21 08:42:39 mbalmer Exp $ */
/*
* Copyright (C) 2006, 2007, 2008, 2009 Marc Balmer <[email protected]>
@@ -69,7 +69,8 @@
static void
usage(void)
{
- (void)fprintf(stderr, "usage: %s interface lladdr\n", getprogname());
+ (void)fprintf(stderr, "usage: %s interface lladdr [lladdr ...]\n",
+ getprogname());
exit(EXIT_FAILURE);
}