projects
/
profile
/
ivi
/
pulseaudio-panda.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6a3cc3
)
daemon: Fix *-idle-time arguments
author
Arun Raghavan
<arun.raghavan@collabora.co.uk>
Tue, 3 Jan 2012 18:19:09 +0000
(23:49 +0530)
committer
Arun 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
patch
|
blob
|
history
diff --git
a/src/daemon/cmdline.c
b/src/daemon/cmdline.c
index
5ad37f6
..
9f71783
100644
(file)
--- 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},