From: Arun Raghavan Date: Tue, 3 Jan 2012 18:19:09 +0000 (+0530) Subject: daemon: Fix *-idle-time arguments X-Git-Url: https://code.delx.au/pulseaudio/commitdiff_plain/86c9fb369153c568bfc62439ad27220d5d0fc247 daemon: Fix *-idle-time arguments --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. --- diff --git a/src/daemon/cmdline.c b/src/daemon/cmdline.c index 5ad37f6d..9f717834 100644 --- a/src/daemon/cmdline.c +++ b/src/daemon/cmdline.c @@ -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},