From c97480f11bdfdc3cbb867b8127074bcb6b047024 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Fri, 12 Jan 2007 00:37:42 +0000 Subject: Allow compilation against GLib --- hcid/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'hcid/main.c') 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); -- cgit