From 34e7d35735408b823b0e21419edf390ce6d6e5e2 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Mon, 31 Dec 2012 17:52:02 +0100 Subject: [PATCH] lldpd: remove unused `g_lastsent` Since migration to libevent, `g_lastsent` variable in `struct lldpd` was not used anymore. --- src/daemon/lldpd.c | 1 - src/daemon/lldpd.h | 1 - 2 files changed, 2 deletions(-) diff --git a/src/daemon/lldpd.c b/src/daemon/lldpd.c index 41ec2b49..ee200041 100644 --- a/src/daemon/lldpd.c +++ b/src/daemon/lldpd.c @@ -730,7 +730,6 @@ lldpd_send_all(struct lldpd *cfg) struct lldpd_port *port; int i, sent; - cfg->g_lastsent = time(NULL); if (cfg->g_config.c_receiveonly) return; log_debug("send", "send PDU on all ports"); diff --git a/src/daemon/lldpd.h b/src/daemon/lldpd.h index eda04afd..d444b110 100644 --- a/src/daemon/lldpd.h +++ b/src/daemon/lldpd.h @@ -95,7 +95,6 @@ struct lldpd { struct lldpd_config g_config; struct protocol *g_protocols; - time_t g_lastsent; int g_lastrid; struct event *g_main_loop; #ifdef USE_SNMP -- 2.39.5