--- a/accel-pppd/ctrl/l2tp/l2tp.c +++ b/accel-pppd/ctrl/l2tp/l2tp.c @@ -852,7 +852,7 @@ void *sessions = conn->sessions; conn->sessions = NULL; - tdestroy(sessions, (__free_fn_t)l2tp_session_free); + tdestroy(sessions, l2tp_session_free); /* Let l2tp_session_free() handle the session counter and * the reference held by the tunnel. */