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. --- serial/port.c | 4 ++-- serial/proxy.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'serial') diff --git a/serial/port.c b/serial/port.c index ddb07b2c..4946e158 100644 --- a/serial/port.c +++ b/serial/port.c @@ -324,7 +324,7 @@ static void rfcomm_connect_cb(GIOChannel *chan, GError *conn_err, int err = errno; error("ioctl(RFCOMMCREATEDEV): %s (%d)", strerror(err), err); reply = failed(port->msg, strerror(err)); - g_io_channel_close(chan); + g_io_channel_shutdown(chan, TRUE, NULL); goto fail; } @@ -332,7 +332,7 @@ static void rfcomm_connect_cb(GIOChannel *chan, GError *conn_err, debug("Serial port %s created", port->dev); - g_io_channel_close(chan); + g_io_channel_shutdown(chan, TRUE, NULL); /* Addressing connect port */ fd = port_open(port); diff --git a/serial/proxy.c b/serial/proxy.c index aab2e87d..3d21cc3b 100644 --- a/serial/proxy.c +++ b/serial/proxy.c @@ -265,7 +265,7 @@ static gboolean forward_data(GIOChannel *chan, GIOCondition cond, gpointer data) err = channel_write(dest, buf, rbytes); } while (err == G_IO_ERROR_NONE); - g_io_channel_close(dest); + g_io_channel_shutdown(dest, TRUE, NULL); return FALSE; } -- cgit