]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
client: fix unused variable when LLDPMED support is not compiled
authorVincent Bernat <bernat@luffy.cx>
Fri, 4 May 2012 16:35:32 +0000 (18:35 +0200)
committerVincent Bernat <bernat@luffy.cx>
Fri, 4 May 2012 16:35:32 +0000 (18:35 +0200)
src/client.c

index eab132e3f0b22f00c62e6d43a2a326bc6b25784e..9b602e634dae55aa0e31e16503ad8ab7b321af11 100644 (file)
@@ -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;