diff options
author | Arun Raghavan <arun.raghavan@collabora.co.uk> | 2012-01-03 23:49:09 +0530 |
---|---|---|
committer | Arun Raghavan <arun.raghavan@collabora.co.uk> | 2012-01-04 00:18:34 +0530 |
commit | 86c9fb369153c568bfc62439ad27220d5d0fc247 (patch) | |
tree | 8d647de7be312095d2333b3a9c2af9c6894bb879 | |
parent | b6a3cc3ad6b2efff27f79927e42129ad9037130a (diff) |
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.
-rw-r--r-- | src/daemon/cmdline.c | 4 |
1 files changed, 2 insertions, 2 deletions
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}, |