All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] test/latency.c: Fix string argument to getopt_long, so now it handles -E and -B
@ 2012-08-08 14:18 Mario Domenech Goulart
  2012-08-08 14:37 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: Mario Domenech Goulart @ 2012-08-08 14:18 UTC (permalink / raw)
  To: alsa-devel

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

Hi,

Attached is a small patch for alsa-lib's test/latency.c to fix command
line arguments handling.

Best wishes.
Mario
-- 
http://parenteses.org/mario

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-test-latency.c-Fix-string-argument-to-getopt_long-so.patch --]
[-- Type: text/x-diff, Size: 785 bytes --]

>From 6298b47a7b76110b97a525f65faf18a8d27089b5 Mon Sep 17 00:00:00 2001
From: Mario Domenech Goulart <mario@ossystems.com.br>
Date: Wed, 8 Aug 2012 11:03:19 -0300
Subject: [PATCH] test/latency.c: Fix string argument to getopt_long, so now it handles -E and -B

---
 test/latency.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/test/latency.c b/test/latency.c
index e9bc6d8..f3d2eb6 100644
--- a/test/latency.c
+++ b/test/latency.c
@@ -502,7 +502,7 @@ int main(int argc, char *argv[])
 	morehelp = 0;
 	while (1) {
 		int c;
-		if ((c = getopt_long(argc, argv, "hP:C:m:M:F:f:c:r:s:bpen", long_option, NULL)) < 0)
+		if ((c = getopt_long(argc, argv, "hP:C:m:M:F:f:c:r:B:E:s:bpen", long_option, NULL)) < 0)
 			break;
 		switch (c) {
 		case 'h':
-- 
1.7.2.5


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



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] test/latency.c: Fix string argument to getopt_long, so now it handles -E and -B
  2012-08-08 14:18 [PATCH] test/latency.c: Fix string argument to getopt_long, so now it handles -E and -B Mario Domenech Goulart
@ 2012-08-08 14:37 ` Takashi Iwai
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2012-08-08 14:37 UTC (permalink / raw)
  To: Mario Domenech Goulart; +Cc: alsa-devel

At Wed, 08 Aug 2012 10:18:21 -0400,
Mario Domenech Goulart wrote:
> 
> Hi,
> 
> Attached is a small patch for alsa-lib's test/latency.c to fix command
> line arguments handling.

Applied now.  Thanks.


Takashi

> 
> Best wishes.
> Mario
> -- 
> http://parenteses.org/mario
> [2 0001-test-latency.c-Fix-string-argument-to-getopt_long-so.patch <text/x-diff (7bit)>]
> >From 6298b47a7b76110b97a525f65faf18a8d27089b5 Mon Sep 17 00:00:00 2001
> From: Mario Domenech Goulart <mario@ossystems.com.br>
> Date: Wed, 8 Aug 2012 11:03:19 -0300
> Subject: [PATCH] test/latency.c: Fix string argument to getopt_long, so now it handles -E and -B
> 
> ---
>  test/latency.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/test/latency.c b/test/latency.c
> index e9bc6d8..f3d2eb6 100644
> --- a/test/latency.c
> +++ b/test/latency.c
> @@ -502,7 +502,7 @@ int main(int argc, char *argv[])
>  	morehelp = 0;
>  	while (1) {
>  		int c;
> -		if ((c = getopt_long(argc, argv, "hP:C:m:M:F:f:c:r:s:bpen", long_option, NULL)) < 0)
> +		if ((c = getopt_long(argc, argv, "hP:C:m:M:F:f:c:r:B:E:s:bpen", long_option, NULL)) < 0)
>  			break;
>  		switch (c) {
>  		case 'h':
> -- 
> 1.7.2.5
> 
> [3  <text/plain; us-ascii (7bit)>]
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-08-08 14:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-08 14:18 [PATCH] test/latency.c: Fix string argument to getopt_long, so now it handles -E and -B Mario Domenech Goulart
2012-08-08 14:37 ` Takashi Iwai

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.