From patchwork Tue Oct 16 15:38:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Aring X-Patchwork-Id: 10643809 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 05AAF109C for ; Tue, 16 Oct 2018 15:38:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E5DC11FFF9 for ; Tue, 16 Oct 2018 15:38:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DA3272A0E7; Tue, 16 Oct 2018 15:38:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AF0D02A11E for ; Tue, 16 Oct 2018 15:38:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727032AbeJPX3b (ORCPT ); Tue, 16 Oct 2018 19:29:31 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:36407 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727026AbeJPX3b (ORCPT ); Tue, 16 Oct 2018 19:29:31 -0400 Received: by mail-qt1-f196.google.com with SMTP id u34-v6so26211249qth.3 for ; Tue, 16 Oct 2018 08:38:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mojatatu-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=IBJDwUAQenLV28GgGiStb1g0/k5iVkynaIzsWQLRecs=; b=J694Wf4UyBIjVEL0Wwzjb40ktElpW9w+SQa4V0cqsowW7gujUR7DzTkjEzFmwHsFW7 +tUFWyMdLWEbh/v7X+w6rZuUBdzQa56M7tFUFP4vQFopgJk6WXjkNPRJGmFQCdpabXcI a107GTwhkoU2A+qz2XZCyl9GMLLfs/mgImROnwsEkxJVrJ6hM9mJ7zCYTTPH5nvXchyF qAC7Niw/QiWXHIhnzng7JKpZdDJigkHHZUETTFk2W7G4JuHGkX12COm0u75Q+qaNLKyI YcHWe27Nq5ajAnudecszdURMkW4A8Te77eEgMVdENBPud+aS3VY5VV3lEPF3rT0XGwWL IB1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=IBJDwUAQenLV28GgGiStb1g0/k5iVkynaIzsWQLRecs=; b=DpS0mNgNyX3ikXHo7UkksLpnWbuE7XLm3rsSsZQomtG1DnTbyg5sM+nYD2evFO9lyr 1mAlPzy3R9VjX6Pr8IbqFkh3XRVwPfQv2LgPllF0335hH0IBxcca8cz1WCecGROxWrK0 jMZdqqfGzhCCO1nWmA2xOQTkJOEeAztjP57//xrf9EeCkmb8FjK1JDiQXvZ84ZgLrrtT +DKEvs/qnXnDG2yeNVwTznibEImG7+xRY43ZsWjYPGufgG+VfajjiDToytRznE4j1aSO agnUqgF2ijQnBrGg72h0q3TkRjRaCay1Omkg1Wsf8EGED6qGDvW61AN3V/3OVjsGg7PJ L6cg== X-Gm-Message-State: ABuFfog3urSaHShKxyy0GNIWA5drlEvL1bdjnkkX8Eg1H1qhANxTA6ji /8nxxwiF+01wvvlr0Dp3sU5cnmdXhHY= X-Google-Smtp-Source: ACcGV63zJsUb3vVoRKe+o03T/fCMsrD9I+0DHP2Zpl6RIz1SGhoBwGPYxLC44J2e1flqggOjugymbA== X-Received: by 2002:aed:233b:: with SMTP id h56-v6mr20563932qtc.316.1539704310463; Tue, 16 Oct 2018 08:38:30 -0700 (PDT) Received: from x220t.lan ([64.26.149.125]) by smtp.gmail.com with ESMTPSA id n25-v6sm12263585qkl.8.2018.10.16.08.38.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Oct 2018 08:38:29 -0700 (PDT) From: Alexander Aring To: stefan@datenfreihafen.org Cc: linux-wpan@vger.kernel.org, Alexander Aring Subject: [PATCH wpan-tools] wpan-hwsim: fix long option argument option for dot Date: Tue, 16 Oct 2018 11:38:21 -0400 Message-Id: <20181016153821.10331-1-aring@mojatatu.com> X-Mailer: git-send-email 2.11.0 Sender: linux-wpan-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wpan@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch fixes the long option argument option to no argument. The dot argument doesn't require any postponed argument. Signed-off-by: Alexander Aring --- wpan-hwsim/wpan-hwsim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpan-hwsim/wpan-hwsim.c b/wpan-hwsim/wpan-hwsim.c index dcddb09..3e54348 100644 --- a/wpan-hwsim/wpan-hwsim.c +++ b/wpan-hwsim/wpan-hwsim.c @@ -393,7 +393,7 @@ int main(int argc, const char *argv[]) static struct option long_options[] = { {"help", no_argument, 0, 'h' }, {"version", no_argument, 0, 'v' }, - {"dot", required_argument, 0, 'd' }, + {"dot", no_argument, 0, 'd' }, {"ignore", required_argument, 0, 'i' }, {0, 0, 0, 0 } };