summaryrefslogtreecommitdiff
path: root/accel-pppd/extra/logwtmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'accel-pppd/extra/logwtmp.c')
-rw-r--r--accel-pppd/extra/logwtmp.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/accel-pppd/extra/logwtmp.c b/accel-pppd/extra/logwtmp.c
index 5848102e..9f31d694 100644
--- a/accel-pppd/extra/logwtmp.c
+++ b/accel-pppd/extra/logwtmp.c
@@ -14,20 +14,20 @@
#include "memdebug.h"
-static void ev_ppp_started(struct ppp_t *ppp)
+static void ev_ses_started(struct ap_session *ses)
{
- logwtmp(ppp->ifname, ppp->username, ppp->ctrl->calling_station_id);
+ logwtmp(ses->ifname, ses->username, ses->ctrl->calling_station_id);
}
-static void ev_ppp_finished(struct ppp_t *ppp)
+static void ev_ses_finished(struct ap_session *ses)
{
- logwtmp(ppp->ifname, "", "");
+ logwtmp(ses->ifname, "", "");
}
static void init(void)
{
- triton_event_register_handler(EV_PPP_STARTED, (triton_event_func)ev_ppp_started);
- triton_event_register_handler(EV_PPP_FINISHED, (triton_event_func)ev_ppp_finished);
+ triton_event_register_handler(EV_SES_STARTED, (triton_event_func)ev_ses_started);
+ triton_event_register_handler(EV_SES_FINISHED, (triton_event_func)ev_ses_finished);
}
DEFINE_INIT(200, init);