]> git.alsa-project.org Git - alsa-utils.git/commitdiff
alsaloop: parse_config(): align optstring order with the long options
authorPeter Korsgaard <peter@korsgaard.com>
Wed, 7 Jan 2026 11:00:21 +0000 (12:00 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 25 May 2026 09:54:34 +0000 (11:54 +0200)
The 'd' and 'm' options were not in the same order as the long options.  Fix
that.

No functional change, but makes it easier to ensure they are kept in sync.

Closes: https://github.com/alsa-project/alsa-utils/pull/317
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
alsaloop/alsaloop.c

index 917801153dd246fa667d3319fafe76cbee2aceb1..b9748db51ab9d1cbb811ac42b7a66a3908b8f946 100644 (file)
@@ -426,7 +426,7 @@ static int parse_config(int argc, char *argv[], snd_output_t *output,
        while (1) {
                int c;
                if ((c = getopt_long(argc, argv,
-                               "hdg:P:C:X:Y:x:l:t:f:c:r:B:E:s:benvA:S:a:m:T:O:w:UW:z",
+                               "hg:dP:C:X:Y:x:l:t:f:c:r:B:E:s:benvA:S:a:T:m:O:w:UW:z",
                                long_option, NULL)) < 0)
                        break;
                switch (c) {