From cc1bb46ffadaf41e3c501cc03eeabb9c1ba5ee08 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 31 Mar 2010 18:47:30 -0500 Subject: Refactor: Use GAtDisconnectFunc for ppp disconnect The ppp argument to the current disconnect callback is useless as the ppp structure is most likely stored in user data anyway. --- gatchat/ppp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gatchat/ppp.c') diff --git a/gatchat/ppp.c b/gatchat/ppp.c index 7755791c..99af49a3 100644 --- a/gatchat/ppp.c +++ b/gatchat/ppp.c @@ -383,7 +383,7 @@ static void ppp_dead(GAtPPP *ppp) { /* notify interested parties */ if (ppp->disconnect_cb) - ppp->disconnect_cb(ppp, ppp->disconnect_data); + ppp->disconnect_cb(ppp->disconnect_data); if (g_atomic_int_get(&ppp->ref_count)) return; -- cgit v1.2.3