summaryrefslogtreecommitdiff
path: root/accel-pppd/cli
diff options
context:
space:
mode:
authorroot <root@tt1.(none)>2012-10-11 16:46:16 +0200
committerKozlov Dmitry <xeb@mail.ru>2013-01-24 23:50:35 +0400
commit227298572c50013225752ff3af13ffc724d26ddf (patch)
treec23cd5875ef2069afc3ade17d2b702f283fe8f40 /accel-pppd/cli
parent16ea2cdf30cf0ec046e7e1766659ffa27e63aa33 (diff)
downloadaccel-ppp-227298572c50013225752ff3af13ffc724d26ddf.tar.gz
accel-ppp-227298572c50013225752ff3af13ffc724d26ddf.zip
move 'comp' field from struct ppp_t to struct ap_session
Conflicts: accel-pppd/ctrl/openvpn/openvpn.c
Diffstat (limited to 'accel-pppd/cli')
-rw-r--r--accel-pppd/cli/show_sessions.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/accel-pppd/cli/show_sessions.c b/accel-pppd/cli/show_sessions.c
index fe20298..9e0ad2f 100644
--- a/accel-pppd/cli/show_sessions.c
+++ b/accel-pppd/cli/show_sessions.c
@@ -452,15 +452,8 @@ static void print_sid(const struct ap_session *ses, char *buf)
static void print_comp(const struct ap_session *ses, char *buf)
{
- struct ppp_t *ppp;
-
- *buf = 0;
-
- if (ses->ctrl->ppp) {
- ppp = container_of(ses, typeof(*ppp), ses);
- if (ppp->comp)
- snprintf(buf, CELL_SIZE, "%s", ppp->comp);
- }
+ if (ses->comp)
+ snprintf(buf, CELL_SIZE, "%s", ses->comp);
}
static void init(void)