From 227298572c50013225752ff3af13ffc724d26ddf Mon Sep 17 00:00:00 2001 From: root Date: Thu, 11 Oct 2012 16:46:16 +0200 Subject: move 'comp' field from struct ppp_t to struct ap_session MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Conflicts: accel-pppd/ctrl/openvpn/openvpn.c --- accel-pppd/cli/show_sessions.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'accel-pppd/cli') diff --git a/accel-pppd/cli/show_sessions.c b/accel-pppd/cli/show_sessions.c index fe202980..9e0ad2fb 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) -- cgit v1.2.3