linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Gustavo Padovan <gustavo@padovan.org>
To: Anton Weber <ant@antweb.me>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH] monitor: Fix optstring to parse -b parameter
Date: Tue, 26 Jun 2012 08:33:19 -0700	[thread overview]
Message-ID: <20120626153319.GB4206@joana> (raw)
In-Reply-To: <1339760580-8219-1-git-send-email-ant@antweb.me>

Hi Anton,

* Anton Weber <ant@antweb.me> [2012-06-15 13:43:00 +0200]:

> Without the colon getopt ignores the parameter and optarg is always NULL.
> ---
>  monitor/main.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/monitor/main.c b/monitor/main.c
> index 90e32c5..0b8ae30 100644
> --- a/monitor/main.c
> +++ b/monitor/main.c
> @@ -73,7 +73,7 @@ int main(int argc, char *argv[])
>  	for (;;) {
>  		int opt;
>  
> -		opt = getopt_long(argc, argv, "bvh", main_options, NULL);
> +		opt = getopt_long(argc, argv, "b:vh", main_options, NULL);
>  		if (opt < 0)
>  			break;

Ack.

	Gustavo

  parent reply	other threads:[~2012-06-26 15:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-15 11:43 [PATCH] monitor: Fix optstring to parse -b parameter Anton Weber
2012-06-25 13:04 ` Anderson Lizardo
2012-06-26 15:33 ` Gustavo Padovan [this message]
2012-06-28  7:36 ` Johan Hedberg

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=20120626153319.GB4206@joana \
    --to=gustavo@padovan.org \
    --cc=ant@antweb.me \
    --cc=linux-bluetooth@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).