From 2b9a14dd0c9fa67062ec80f0f6d80b1b64f18b72 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Tue, 8 Feb 2011 16:25:14 -0600 Subject: [PATCH] gatmux: Remove unused error variable --- gatchat/gatmux.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gatchat/gatmux.c b/gatchat/gatmux.c index fa971734..b36cd2bb 100644 --- a/gatchat/gatmux.c +++ b/gatchat/gatmux.c @@ -183,7 +183,6 @@ static gboolean received_data(GIOChannel *channel, GIOCondition cond, { GAtMux *mux = data; int i; - GError *error = NULL; GIOStatus status; gsize bytes_read; @@ -195,7 +194,7 @@ static gboolean received_data(GIOChannel *channel, GIOCondition cond, bytes_read = 0; status = g_io_channel_read_chars(mux->channel, mux->buf + mux->buf_used, sizeof(mux->buf) - mux->buf_used, - &bytes_read, &error); + &bytes_read, NULL); mux->buf_used += bytes_read; @@ -308,12 +307,11 @@ static void wakeup_writer(GAtMux *mux) int g_at_mux_raw_write(GAtMux *mux, const void *data, int towrite) { - GError *error = NULL; gssize count = towrite; gsize bytes_written; g_io_channel_write_chars(mux->channel, (gchar *) data, - count, &bytes_written, &error); + count, &bytes_written, NULL); return bytes_written; }