Skip to contentSkip to conversation

test/latency.c: Fix string argument to getopt_long, so now it handles -E and -B

PATCH In review Mario Domenech Goulart 2 participants 2 messages Aug 8, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 test/latency.c: Fix string argument to getopt_long, so now it handles -E and -B

Hi,

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

Best wishes.
Mario

Signature · 1 line
http://parenteses.org/mario
Quoted 1 line

From 6298b47a7b76110b97a525f65faf18a8d27089b5 Mon Sep 17 00:00:00 2001

From: Mario Domenech Goulart <[email protected]>
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(-)
test/latency.c +1 -1
index e9bc6d8..f3d2eb6 100644
@@ -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':
Signature · 1 line
1.7.2.5
#1 lore raw

At Wed, 08 Aug 2012 10:18:21 -0400,

Quoted 5 lines · Mario Domenech Goulart

Hi,

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

Applied now. Thanks.

Takashi

Quoted 36 lines

Best wishes.
Mario

Signature · 2 lines
http://parenteses.org/mario
[2 0001-test-latency.c-Fix-string-argument-to-getopt_long-so.patch <text/x-diff (7bit)>]
Quoted 1 line

From 6298b47a7b76110b97a525f65faf18a8d27089b5 Mon Sep 17 00:00:00 2001

From: Mario Domenech Goulart <[email protected]>
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(-)
test/latency.c +1 -1
index e9bc6d8..f3d2eb6 100644
@@ -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':
Signature · 7 lines
1.7.2.5

[3  <text/plain; us-ascii (7bit)>]
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel