summaryrefslogtreecommitdiffstats
path: root/hcid/main.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-01-12 00:37:42 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-01-12 00:37:42 +0000
commitc97480f11bdfdc3cbb867b8127074bcb6b047024 (patch)
tree885dff3c4d9f46567af438af0e266acdc932f281 /hcid/main.c
parentb6f6c5cf2f85f27b277b891acf0a22c4a068bbbe (diff)
Allow compilation against GLib
Diffstat (limited to 'hcid/main.c')
-rw-r--r--hcid/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hcid/main.c b/hcid/main.c
index 722a3b15..d0490cfe 100644
--- a/hcid/main.c
+++ b/hcid/main.c
@@ -524,7 +524,7 @@ static void init_defaults(void)
static void sig_term(int sig)
{
- g_main_quit(event_loop);
+ g_main_loop_quit(event_loop);
}
static void sig_hup(int sig)
@@ -728,7 +728,7 @@ int main(int argc, char *argv[])
init_security_data();
/* Create event loop */
- event_loop = g_main_new(FALSE);
+ event_loop = g_main_loop_new(NULL, FALSE);
ctl_io = g_io_channel_unix_new(hcid.sock);
g_io_channel_set_close_on_unref(ctl_io, TRUE);
@@ -753,7 +753,7 @@ int main(int argc, char *argv[])
cleanup_sdp_session();
- g_main_unref(event_loop);
+ g_main_loop_unref(event_loop);
g_io_channel_unref(ctl_io);