summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2009-02-19 15:58:15 -0300
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2009-02-19 16:23:10 -0300
commit10d6858927cb3db0a06c42f41cdb5f3175082df3 (patch)
tree84b4164449b747d56c0d4b86b205f80744162fc5 /src
parente777c55aa7cd84fe63bcdee16acde8d1a293b928 (diff)
Make use of g_io_channel_shutdown instead of deprecated g_io_channel_close.
Diffstat (limited to 'src')
-rw-r--r--src/device.c8
1 files changed, 4 insertions, 4 deletions
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);
}
}