From owner-svn-src-stable@FreeBSD.ORG Sat Mar 10 08:25:49 2012 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DB8E8106564A; Sat, 10 Mar 2012 08:25:49 +0000 (UTC) (envelope-from jh@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id CA3E08FC0A; Sat, 10 Mar 2012 08:25:49 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q2A8Pn9B047309; Sat, 10 Mar 2012 08:25:49 GMT (envelope-from jh@svn.freebsd.org) Received: (from jh@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q2A8PndK047307; Sat, 10 Mar 2012 08:25:49 GMT (envelope-from jh@svn.freebsd.org) Message-Id: <201203100825.q2A8PndK047307@svn.freebsd.org> From: Jaakko Heinonen Date: Sat, 10 Mar 2012 08:25:49 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org X-SVN-Group: stable-9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r232774 - stable/9/usr.sbin/wake X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Mar 2012 08:25:50 -0000 Author: jh Date: Sat Mar 10 08:25:49 2012 New Revision: 232774 URL: http://svn.freebsd.org/changeset/base/232774 Log: MFC r232101: style(9). Modified: stable/9/usr.sbin/wake/wake.c Directory Properties: stable/9/usr.sbin/wake/ (props changed) Modified: stable/9/usr.sbin/wake/wake.c ============================================================================== --- stable/9/usr.sbin/wake/wake.c Sat Mar 10 07:54:41 2012 (r232773) +++ stable/9/usr.sbin/wake/wake.c Sat Mar 10 08:25:49 2012 (r232774) @@ -78,7 +78,7 @@ wake(int bpf, const char *host) if (get_ether(host, &macaddr) == -1) return (-1); - return send_wakeup(bpf, &macaddr); + return (send_wakeup(bpf, &macaddr)); } static int @@ -111,10 +111,10 @@ find_ether(char *dst, size_t len) int nifs; if (dst == NULL || len == 0) - return 0; + return (0); if (getifaddrs(&ifap) != 0) - return -1; + return (-1); /* XXX also check the link state */ for (nifs = 0, ifa = ifap; ifa; ifa = ifa->ifa_next) @@ -128,7 +128,7 @@ find_ether(char *dst, size_t len) } freeifaddrs(ifap); - return nifs == 1 ? 0 : -1; + return (nifs == 1 ? 0 : -1); } static int