diff options
author | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2009-02-19 15:58:15 -0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2009-02-19 16:23:10 -0300 |
commit | 10d6858927cb3db0a06c42f41cdb5f3175082df3 (patch) | |
tree | 84b4164449b747d56c0d4b86b205f80744162fc5 /test | |
parent | e777c55aa7cd84fe63bcdee16acde8d1a293b928 (diff) |
Make use of g_io_channel_shutdown instead of deprecated g_io_channel_close.
Diffstat (limited to 'test')
-rw-r--r-- | test/btiotest.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; } |