]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
Fix warning when compiling without LLDP-MED
authorVincent Bernat <bernat@luffy.cx>
Mon, 2 Mar 2009 15:06:54 +0000 (16:06 +0100)
committerVincent Bernat <bernat@luffy.cx>
Mon, 2 Mar 2009 15:06:54 +0000 (16:06 +0100)
src/client.c

index 8d1d6d3978eb59297e9120be819f4b923443eddc..a8a2ed8b16d318a1ffd5af26d82874b98b8f1ed2 100644 (file)
@@ -134,7 +134,9 @@ client_handle_port_related(struct lldpd *cfg, struct hmsg *r, struct hmsg *s)
        char *ifname;
        struct lldpd_hardware *hardware;
        void *p;
+#ifdef ENABLE_LLDPMED
        int i;
+#endif
 
        ifname = (char*)(&r->data);
        if ((r->hdr.len < IFNAMSIZ) || (ifname[IFNAMSIZ - 1] != 0)) {