From 62556214991fcbc5291f104c89eadac32151439a Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Mon, 13 Aug 2012 22:22:56 -0400 Subject: add missing -d option alphabetize the optstring and longopt array while we're at it. --- pulsemix.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pulsemix.c b/pulsemix.c index e2fdac3..7f1af75 100644 --- a/pulsemix.c +++ b/pulsemix.c @@ -731,16 +731,16 @@ int main(int argc, char *argv[]) int (*fn_get_by_name)(struct pulseaudio_t *, const char *, enum mode) = get_sink_by_name; static const struct option opts[] = { - { "help", no_argument, 0, 'h' }, - { "device", no_argument, 0, 'd' }, { "app", no_argument, 0, 'a' }, + { "device", no_argument, 0, 'd' }, + { "help", no_argument, 0, 'h' }, { "sink", optional_argument, 0, 'o' }, { "source", optional_argument, 0, 'i' }, { 0, 0, 0, 0 }, }; for (;;) { - int opt = getopt_long(argc, argv, "hao::i::", opts, NULL); + int opt = getopt_long(argc, argv, "adhi::o::", opts, NULL); if (opt == -1) break; -- cgit v1.2.3