]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
lldpd: remove unused `g_lastsent`
authorVincent Bernat <bernat@luffy.cx>
Mon, 31 Dec 2012 16:52:02 +0000 (17:52 +0100)
committerVincent Bernat <bernat@luffy.cx>
Mon, 31 Dec 2012 16:52:02 +0000 (17:52 +0100)
Since migration to libevent, `g_lastsent` variable in `struct lldpd`
was not used anymore.

src/daemon/lldpd.c
src/daemon/lldpd.h

index 41ec2b494ec83f20cb40cf38a7a0efac9d8dd465..ee2000410911cd1f9ea501896233ed3a4b0e91cc 100644 (file)
@@ -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");
index eda04afd7e499bdb0dcc56d113fdd5eaf8c37e96..d444b110018bf5c4bc4a86cdce07cf238fce223e 100644 (file)
@@ -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