summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2012-04-19 11:06:26 +0100
committerDaniel P. Berrange <berrange@redhat.com>2012-04-19 11:13:28 +0100
commit8cac57227d196ca7976ded18bbaaed91ee602f1a (patch)
tree8af129beeb72be1d5cb3ea36daf78fa420eb0cbc
parentff7994ca59f9afffb028b7380b3deb587d84db0e (diff)
Fix callback signature for --spice-debug option handling
The callback for option handling should return TRUE otherwise the option parser will think parsing failed. The current 'void' return type meant it was non-deterministic whether --spice-debug actually worked or not Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
-rw-r--r--gtk/spice-option.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/spice-option.c b/gtk/spice-option.c
index dbee5ac..ea5d226 100644
--- a/gtk/spice-option.c
+++ b/gtk/spice-option.c
@@ -46,9 +46,10 @@ static void option_version(void)
exit(0);
}
-static void option_debug(void)
+static gboolean option_debug(void)
{
spice_util_set_debug(TRUE);
+ return TRUE;
}
/**