From ae8f31043e18902a2aebe980a99bcb78fc492e86 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Mon, 17 Nov 2008 09:40:56 +0100 Subject: [PATCH] Fix some compiler warnings --- src/agent_priv.c | 1 + src/edp.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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)); } -- 2.39.5