From patchwork Thu Dec 22 18:44:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joe Stringer X-Patchwork-Id: 708321 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail.linuxfoundation.org (mail.linuxfoundation.org [140.211.169.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3tl0nd0hd1z9ry7 for ; Fri, 23 Dec 2016 05:45:08 +1100 (AEDT) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id AD9A3C03; Thu, 22 Dec 2016 18:45:05 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@mail.linuxfoundation.org Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 2DA7ABFA for ; Thu, 22 Dec 2016 18:45:04 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id AABCF206 for ; Thu, 22 Dec 2016 18:45:03 +0000 (UTC) Received: from mfilter44-d.gandi.net (mfilter44-d.gandi.net [217.70.178.175]) by relay2-d.mail.gandi.net (Postfix) with ESMTP id 77760C5A4F for ; Thu, 22 Dec 2016 19:45:02 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mfilter44-d.gandi.net Received: from relay2-d.mail.gandi.net ([IPv6:::ffff:217.70.183.194]) by mfilter44-d.gandi.net (mfilter44-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id AXOic-dGYmdU for ; Thu, 22 Dec 2016 19:45:01 +0100 (CET) X-Originating-IP: 208.91.1.34 Received: from carno.eng.vmware.com (unknown [208.91.1.34]) (Authenticated sender: joe@ovn.org) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id BF187C5A5A for ; Thu, 22 Dec 2016 19:45:00 +0100 (CET) From: Joe Stringer To: dev@openvswitch.org Date: Thu, 22 Dec 2016 10:44:53 -0800 Message-Id: <20161222184453.22821-1-joe@ovn.org> X-Mailer: git-send-email 2.10.2 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Subject: [ovs-dev] [PATCH] atlocal: Fix findcommand function style. X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: ovs-dev-bounces@openvswitch.org Errors-To: ovs-dev-bounces@openvswitch.org Signed-off-by: Joe Stringer Acked-by: Ben Pfaff --- tests/atlocal.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/atlocal.in b/tests/atlocal.in index 1353b46fd1ef..5b151c3d84c3 100644 --- a/tests/atlocal.in +++ b/tests/atlocal.in @@ -126,7 +126,7 @@ fi # Look for a commnand in the system. If it is found, defines # HAVE_COMMAND="yes", otherwise HAVE_COMMAND="no". -FindCommand() +find_command() { which $1 > /dev/null 2>&1 status=$? @@ -139,7 +139,7 @@ FindCommand() } # Set HAVE_NC -FindCommand nc +find_command nc # Determine correct netcat option to quit on stdin EOF if nc --version 2>&1 | grep -q nmap.org; then