summaryrefslogtreecommitdiffstats
path: root/src/app.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-03-22 21:03:19 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-03-22 21:04:56 +0100
commitc4d01f9a909c3322ec803349615f83c2c695497e (patch)
tree78ac9abf45c787586a9183ac94099855fcf33281 /src/app.c
parent29b556490f593a621e8356f5e64ced036152d306 (diff)
call: Add a backpointer from leg to call and drop the argument
Simplify the structure by either working with a call or just a leg of it. No need to carry both pointers all the time.
Diffstat (limited to 'src/app.c')
-rw-r--r--src/app.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app.c b/src/app.c
index 80bd3af..6ab584d 100644
--- a/src/app.c
+++ b/src/app.c
@@ -43,8 +43,8 @@ void app_mncc_disconnected(struct mncc_connection *conn)
*/
LOGP(DAPP, LOGL_NOTICE,
"Going to release call(%u) due MNCC.\n", call->id);
- call_leg_release(call, call->initial);
- call_leg_release(call, call->remote);
+ call_leg_release(call->initial);
+ call_leg_release(call->remote);
}
}