summaryrefslogtreecommitdiffstats
path: root/gatchat/gatmux.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2011-02-08 16:25:14 -0600
committerDenis Kenzior <denkenz@gmail.com>2011-02-08 16:48:52 -0600
commit2b9a14dd0c9fa67062ec80f0f6d80b1b64f18b72 (patch)
tree4e366d30c9e9f97920f3a043d72d1548a2b0983e /gatchat/gatmux.c
parent6608c0018dfd61004f8700030196efdfe2ae2ebd (diff)
downloadofono-2b9a14dd0c9fa67062ec80f0f6d80b1b64f18b72.tar.bz2
gatmux: Remove unused error variable
Diffstat (limited to 'gatchat/gatmux.c')
-rw-r--r--gatchat/gatmux.c6
1 files 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;
}