diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2010-04-12 17:48:20 -0700 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-04-12 17:48:20 -0700 |
commit | a977ecf260970358c6d8440a4ee6f6125f463777 (patch) | |
tree | 7ffa6a2298f1038847de62e1746af1f6fd8bf6df /gatchat/gatmux.c | |
parent | 5b229e60c91645dfdec717e7dfdb43478e9058b8 (diff) | |
download | ofono-a977ecf260970358c6d8440a4ee6f6125f463777.tar.bz2 |
Remove various GDestroyNotify function casting
Diffstat (limited to 'gatchat/gatmux.c')
-rw-r--r-- | gatchat/gatmux.c | 6 |
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) |