From owner-svn-src-head@FreeBSD.ORG Tue Jun 30 20:18:14 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6E5D1106566C; Tue, 30 Jun 2009 20:18:14 +0000 (UTC) (envelope-from serenity@exscape.org) Received: from ch-smtp01.sth.basefarm.net (ch-smtp01.sth.basefarm.net [80.76.149.212]) by mx1.freebsd.org (Postfix) with ESMTP id 2371A8FC18; Tue, 30 Jun 2009 20:18:14 +0000 (UTC) (envelope-from serenity@exscape.org) Received: from c83-253-252-234.bredband.comhem.se ([83.253.252.234]:50537 helo=mx.exscape.org) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.69) (envelope-from ) id 1MLjX8-00029W-4Q; Tue, 30 Jun 2009 22:02:28 +0200 Received: from [192.168.1.5] (macbookpro [192.168.1.5]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mx.exscape.org (Postfix) with ESMTPSA id 26C4CCD37; Tue, 30 Jun 2009 22:02:22 +0200 (CEST) Message-Id: From: Thomas Backman To: Martin Blapp In-Reply-To: <200906301851.n5UIpNJQ089171@svn.freebsd.org> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v935.3) Date: Tue, 30 Jun 2009 22:02:19 +0200 References: <200906301851.n5UIpNJQ089171@svn.freebsd.org> X-Mailer: Apple Mail (2.935.3) X-Originating-IP: 83.253.252.234 X-Scan-Result: No virus found in message 1MLjX8-00029W-4Q. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1MLjX8-00029W-4Q 4a1d6d053815746d26bfa7e40ee24261 Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r195200 - in head/usr.sbin: . wake X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Jun 2009 20:18:15 -0000 On Jun 30, 2009, at 08:51 PM, Martin Blapp wrote: > > +void > +usage(void) > +{ > + (void)fprintf(stderr, "usage: wake interface lladdr\n"); > + exit(0); > +} > [...] > + for (n = 2; n < argc; n++) > + if (wake(argv[1], argv[n])) > + warnx("error sending Wake on LAN frame over %s to %s", > + argv[1], argv[n]); > + return 0; > +} The usage() function doesn't mention the possibility of specifying multiple hosts (although it appears the manual page does mention it). Regards, Thomas