From 2a836f02ede4ea966fe1cc714aea47bdacd41270 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Fri, 4 May 2012 18:35:32 +0200 Subject: [PATCH] client: fix unused variable when LLDPMED support is not compiled --- src/client.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client.c b/src/client.c index eab132e3..9b602e63 100644 --- a/src/client.c +++ b/src/client.c @@ -113,7 +113,9 @@ client_handle_set_port(struct lldpd *cfg, enum hmsg_type *type, int ret = 0; struct lldpd_port_set *set = NULL; struct lldpd_hardware *hardware = NULL; +#ifdef ENABLE_LLDPMED struct lldpd_med_loc *loc = NULL; +#endif if (marshal_unserialize(lldpd_port_set, input, input_len, &set) <= 0) { *type = NONE; -- 2.39.5