From a977ecf260970358c6d8440a4ee6f6125f463777 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Mon, 12 Apr 2010 17:48:20 -0700 Subject: Remove various GDestroyNotify function casting --- gatchat/gatmux.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gatchat/gatmux.c') 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) -- cgit v1.2.3