[alsa-devel] [PATCH] test/latency.c: Fix string argument to getopt_long, so now it handles -E and -B
Takashi Iwai
tiwai at suse.de
Wed Aug 8 16:37:18 CEST 2012
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 at 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 at alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
More information about the Alsa-devel
mailing list