All of lore.kernel.org
 help / color / mirror / Atom feed
From: Felipe Ferreri Tonello <eu@felipetonello.com>
To: Takashi Sakamoto <o-takashi@sakamocchi.jp>, alsa-devel@alsa-project.org
Subject: Re: [PATCH v6 2/2] amidi: use GNU getopt_long() proper argument names
Date: Tue, 30 Aug 2016 11:18:10 +0100	[thread overview]
Message-ID: <86a87a98-556e-bb75-1871-f4e702bc200d@felipetonello.com> (raw)
In-Reply-To: <9216de97-1bea-8848-29fd-2a90f8136626@sakamocchi.jp>

[-- Attachment #1: Type: text/plain, Size: 1948 bytes --]

Hi Takashi,

On 30/08/16 00:22, Takashi Sakamoto wrote:
> On Aug 23 2016 23:09, Felipe F. Tonello wrote:
>> This has no affect besides more clarity to the code.
>>
>> Signed-off-by: Felipe F. Tonello <eu@felipetonello.com>
>> ---
>>  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;
> 
> This patch should be posted separately from this patchset, because it's
> just for code improvement regardless of your new feature. This patch
> might be independently merged without long discussions.

Ok.

-- 
Felipe

[-- Attachment #2: 0x92698E6A.asc --]
[-- Type: application/pgp-keys, Size: 7177 bytes --]

[-- Attachment #3: Type: text/plain, Size: 0 bytes --]



      reply	other threads:[~2016-08-30 10:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-23 14:09 [PATCH v6 0/2] amidi delay option Felipe F. Tonello
2016-08-23 14:09 ` [PATCH v6 1/2] amidi: add " Felipe F. Tonello
2016-08-29 23:19   ` Takashi Sakamoto
2016-08-30 10:19     ` Felipe Ferreri Tonello
2016-08-23 14:09 ` [PATCH v6 2/2] amidi: use GNU getopt_long() proper argument names Felipe F. Tonello
2016-08-29 23:22   ` Takashi Sakamoto
2016-08-30 10:18     ` Felipe Ferreri Tonello [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86a87a98-556e-bb75-1871-f4e702bc200d@felipetonello.com \
    --to=eu@felipetonello.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=o-takashi@sakamocchi.jp \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.