]> code.delx.au - pulseaudio/commitdiff
daemon: Fix *-idle-time arguments
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Tue, 3 Jan 2012 18:19:09 +0000 (23:49 +0530)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Tue, 3 Jan 2012 18:48:34 +0000 (00:18 +0530)
--exit-idle-time and --scache-idle-time were marked as having an
optional argument when the argument is actually mandatory. This causes a
crash when using this argument.

Thanks to Matthijs Kooijman (blathijs on IRC) for pointing this out.

src/daemon/cmdline.c

index 5ad37f6d65104d5843f2a651b8647d7d8a3b8057..9f717834bcbea25cd9695bbd55fa0d39b17e4616 100644 (file)
@@ -85,8 +85,8 @@ static const struct option long_options[] = {
     {"realtime",                    2, 0, ARG_REALTIME},
     {"disallow-module-loading",     2, 0, ARG_DISALLOW_MODULE_LOADING},
     {"disallow-exit",               2, 0, ARG_DISALLOW_EXIT},
-    {"exit-idle-time",              2, 0, ARG_EXIT_IDLE_TIME},
-    {"scache-idle-time",            2, 0, ARG_SCACHE_IDLE_TIME},
+    {"exit-idle-time",              1, 0, ARG_EXIT_IDLE_TIME},
+    {"scache-idle-time",            1, 0, ARG_SCACHE_IDLE_TIME},
     {"log-target",                  1, 0, ARG_LOG_TARGET},
     {"log-meta",                    2, 0, ARG_LOG_META},
     {"log-time",                    2, 0, ARG_LOG_TIME},