summaryrefslogtreecommitdiff
path: root/accel-pppd/session.c
diff options
context:
space:
mode:
authorGuillaume Nault <g.nault@alphalink.fr>2013-06-26 20:51:00 +0200
committerDmitry Kozlov <xeb@mail.ru>2013-06-29 15:01:09 +0400
commit2a3606e352b9826b37ffc1414b60dd6a4f5c7b8e (patch)
tree348132e6ae7612d209e510cc9050b9275fdac363 /accel-pppd/session.c
parent6bf07eec92361996df794552e7e4f2ea36886b33 (diff)
downloadaccel-ppp-2a3606e352b9826b37ffc1414b60dd6a4f5c7b8e.tar.gz
accel-ppp-2a3606e352b9826b37ffc1414b60dd6a4f5c7b8e.zip
session: Remove unused call to time()
't' is set using time() but never used afterwards. Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Diffstat (limited to 'accel-pppd/session.c')
-rw-r--r--accel-pppd/session.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/accel-pppd/session.c b/accel-pppd/session.c
index c6d0a3f..1efad5e 100644
--- a/accel-pppd/session.c
+++ b/accel-pppd/session.c
@@ -274,7 +274,6 @@ static void generate_sessionid(struct ap_session *ses)
int __export ap_session_read_stats(struct ap_session *ses, struct rtnl_link_stats *stats)
{
struct rtnl_link_stats lstats;
- time_t t;
if (ses->ifindex == -1)
return -1;
@@ -282,8 +281,6 @@ int __export ap_session_read_stats(struct ap_session *ses, struct rtnl_link_stat
if (!stats)
stats = &lstats;
- time(&t);
-
if (iplink_get_stats(ses->ifindex, stats)) {
log_ppp_warn("failed to get interface statistics\n");
return -1;