From a80ca699de13aa131da6ae6f4b0021fc37289c27 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Mon, 2 Mar 2009 16:06:54 +0100 Subject: [PATCH] Fix warning when compiling without LLDP-MED --- src/client.c | 2 ++ 1 file changed, 2 insertions(+) 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)) { -- 2.39.5