From 10d6858927cb3db0a06c42f41cdb5f3175082df3 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Thu, 19 Feb 2009 15:58:15 -0300 Subject: Make use of g_io_channel_shutdown instead of deprecated g_io_channel_close. --- test/btiotest.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/btiotest.c b/test/btiotest.c index 9f4a1031..ede8a452 100644 --- a/test/btiotest.c +++ b/test/btiotest.c @@ -89,7 +89,7 @@ static gboolean disconn_timeout(gpointer user_data) printf("Disconnecting\n"); - g_io_channel_close(data->io); + g_io_channel_shutdown(data->io, TRUE, NULL); return FALSE; } @@ -130,7 +130,7 @@ static void connect_cb(GIOChannel *io, GError *err, gpointer user_data) } if (data->disconn == 0) { - g_io_channel_close(io); + g_io_channel_shutdown(io, TRUE, NULL); printf("Disconnected\n"); return; } @@ -158,7 +158,7 @@ static gboolean confirm_timeout(gpointer user_data) if (data->reject >= 0) { printf("Rejecting connection\n"); - g_io_channel_close(data->io); + g_io_channel_shutdown(data->io, TRUE, NULL); return FALSE; } @@ -193,7 +193,7 @@ static void confirm_cb(GIOChannel *io, gpointer user_data) if (data->reject == 0) { printf("Rejecting connection\n"); - g_io_channel_close(io); + g_io_channel_shutdown(io, TRUE, NULL); return; } -- cgit