From: "Felipe F. Tonello" Subject: [PATCH v6 2/2] amidi: use GNU getopt_long() proper argument names Date: Tue, 23 Aug 2016 15:09:38 +0100 Message-ID: <20160823140938.21423-3-eu@felipetonello.com> References: <20160823140938.21423-1-eu@felipetonello.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) by alsa0.perex.cz (Postfix) with ESMTP id E35B1267E61 for ; Tue, 23 Aug 2016 16:09:42 +0200 (CEST) Received: by mail-wm0-f68.google.com with SMTP id o80so18350779wme.0 for ; Tue, 23 Aug 2016 07:09:42 -0700 (PDT) Received: from localhost.localdomain ([81.145.202.106]) by smtp.gmail.com with ESMTPSA id us9sm4005204wjb.43.2016.08.23.07.09.41 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Aug 2016 07:09:41 -0700 (PDT) In-Reply-To: <20160823140938.21423-1-eu@felipetonello.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org This has no affect besides more clarity to the code. Signed-off-by: Felipe F. Tonello --- amidi/amidi.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/amidi/amidi.c b/amidi/amidi.c index d0dbb322f80a..088da56e2139 100644 --- a/amidi/amidi.c +++ b/amidi/amidi.c @@ -415,19 +415,19 @@ int main(int argc, char *argv[]) { static const char short_options[] = "hVlLp:s:r:S::dt:acD:"; static const struct option long_options[] = { - {"help", 0, NULL, 'h'}, - {"version", 0, NULL, 'V'}, - {"list-devices", 0, NULL, 'l'}, - {"list-rawmidis", 0, NULL, 'L'}, - {"port", 1, NULL, 'p'}, - {"send", 1, NULL, 's'}, - {"receive", 1, NULL, 'r'}, - {"send-hex", 2, NULL, 'S'}, - {"dump", 0, NULL, 'd'}, - {"timeout", 1, NULL, 't'}, - {"active-sensing", 0, NULL, 'a'}, - {"clock", 0, NULL, 'c'}, - {"delay", 1, NULL, 'D'}, + {"help", no_argument, NULL, 'h'}, + {"version", no_argument, NULL, 'V'}, + {"list-devices", no_argument, NULL, 'l'}, + {"list-rawmidis", no_argument, NULL, 'L'}, + {"port", required_argument, NULL, 'p'}, + {"send", required_argument, NULL, 's'}, + {"receive", required_argument, NULL, 'r'}, + {"send-hex", optional_argument, NULL, 'S'}, + {"dump", no_argument, NULL, 'd'}, + {"timeout", required_argument, NULL, 't'}, + {"active-sensing", no_argument, NULL, 'a'}, + {"clock", no_argument, NULL, 'c'}, + {"delay", required_argument, NULL, 'D'}, { } }; int c, err, ok = 0; -- 2.9.3