From: Vincent Bernat Date: Mon, 17 Nov 2008 08:40:56 +0000 (+0100) Subject: Fix some compiler warnings X-Git-Tag: 0.2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ae8f31043e18902a2aebe980a99bcb78fc492e86;p=thirdparty%2Flldpd.git Fix some compiler warnings --- diff --git a/src/agent_priv.c b/src/agent_priv.c index c055d341..90140b9b 100644 --- a/src/agent_priv.c +++ b/src/agent_priv.c @@ -21,6 +21,7 @@ #include "lldpd.h" +#include #include #include diff --git a/src/edp.c b/src/edp.c index ffd317ab..f13ed2ab 100644 --- a/src/edp.c +++ b/src/edp.c @@ -110,7 +110,7 @@ edp_send(struct lldpd *global, struct lldpd_chassis *chassis, break; } } - if (info.port == -1) { + if (deviceslot[i] == NULL) { info.slot = htons(8); info.port = htons(if_nametoindex(hardware->h_ifname)); }