summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-09-06 01:10:56 +0200
committerMarcel Holtmann <marcel@holtmann.org>2008-09-06 01:10:56 +0200
commitc74f11481aabe51612c7200e1e3ab91f7f1c4abb (patch)
tree8ce09cbb3bd482becfe1057aec9a530126b6e0a7 /audio
parent8b2e688eaf5b71006c72cf91a8e4df3c0c41c306 (diff)
Fix D-Bus connection init
Diffstat (limited to 'audio')
-rw-r--r--audio/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/audio/main.c b/audio/main.c
index bf0e4884..4583ca81 100644
--- a/audio/main.c
+++ b/audio/main.c
@@ -39,8 +39,6 @@
#include "device.h"
#include "manager.h"
-static DBusConnection *connection = NULL;
-
static GKeyFile *load_config_file(const char *file)
{
GError *err = NULL;
@@ -58,6 +56,8 @@ static GKeyFile *load_config_file(const char *file)
return keyfile;
}
+static DBusConnection *connection;
+
static int audio_init(void)
{
GKeyFile *config;