summaryrefslogtreecommitdiffstats
path: root/serial/proxy.c
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 /serial/proxy.c
parente777c55aa7cd84fe63bcdee16acde8d1a293b928 (diff)
Make use of g_io_channel_shutdown instead of deprecated g_io_channel_close.
Diffstat (limited to 'serial/proxy.c')
-rw-r--r--serial/proxy.c2
1 files changed, 1 insertions, 1 deletions
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;
}