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. --- src/device.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/device.c b/src/device.c index 8e83000f..fe369502 100644 --- a/src/device.c +++ b/src/device.c @@ -1537,7 +1537,7 @@ static void bonding_request_free(struct bonding_req *bonding, gboolean close) if (bonding->io) { if (close) - g_io_channel_close(bonding->io); + g_io_channel_shutdown(bonding->io, TRUE, NULL); g_io_channel_unref(bonding->io); } @@ -1619,7 +1619,7 @@ static gboolean create_bonding_io_cb(GIOChannel *io, GIOCondition cond, int sk, dd, ret; if (!device->bonding) { - g_io_channel_close(io); + g_io_channel_shutdown(io, TRUE, NULL); return FALSE; } @@ -1723,7 +1723,7 @@ static gboolean create_bonding_io_cb(GIOChannel *io, GIOCondition cond, return FALSE; failed: - g_io_channel_close(io); + g_io_channel_shutdown(io, TRUE, NULL); cleanup: device->bonding->io_id = 0; @@ -1743,7 +1743,7 @@ static void create_bond_req_exit(DBusConnection *conn, void *user_data) if (device->bonding) { device->bonding->listener_id = 0; - g_io_channel_close(device->bonding->io); + g_io_channel_shutdown(device->bonding->io, TRUE, NULL); bonding_request_free(device->bonding, TRUE); } } -- cgit