summaryrefslogtreecommitdiffstats
path: root/gatchat/gatmux.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-04-12 17:48:20 -0700
committerMarcel Holtmann <marcel@holtmann.org>2010-04-12 17:48:20 -0700
commita977ecf260970358c6d8440a4ee6f6125f463777 (patch)
tree7ffa6a2298f1038847de62e1746af1f6fd8bf6df /gatchat/gatmux.c
parent5b229e60c91645dfdec717e7dfdb43478e9058b8 (diff)
downloadofono-a977ecf260970358c6d8440a4ee6f6125f463777.tar.bz2
Remove various GDestroyNotify function casting
Diffstat (limited to 'gatchat/gatmux.c')
-rw-r--r--gatchat/gatmux.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gatchat/gatmux.c b/gatchat/gatmux.c
index 8187492b..b70f6a0d 100644
--- a/gatchat/gatmux.c
+++ b/gatchat/gatmux.c
@@ -223,8 +223,10 @@ static gboolean received_data(GIOChannel *channel, GIOCondition cond,
return TRUE;
}
-static void write_watcher_destroy_notify(GAtMux *mux)
+static void write_watcher_destroy_notify(gpointer user_data)
{
+ GAtMux *mux = user_data;
+
mux->write_watch = 0;
}
@@ -288,7 +290,7 @@ static void wakeup_writer(GAtMux *mux)
G_PRIORITY_DEFAULT,
G_IO_OUT | G_IO_HUP | G_IO_ERR | G_IO_NVAL,
can_write_data, mux,
- (GDestroyNotify)write_watcher_destroy_notify);
+ write_watcher_destroy_notify);
}
int g_at_mux_raw_write(GAtMux *mux, const void *data, int towrite)