From: Vincent Bernat Date: Mon, 2 Mar 2009 15:06:54 +0000 (+0100) Subject: Fix warning when compiling without LLDP-MED X-Git-Tag: 0.3.2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a80ca699de13aa131da6ae6f4b0021fc37289c27;p=thirdparty%2Flldpd.git Fix warning when compiling without LLDP-MED --- diff --git a/src/client.c b/src/client.c index 8d1d6d39..a8a2ed8b 100644 --- a/src/client.c +++ b/src/client.c @@ -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)) {