From 2dfcf9b804396d76a9159d7fac23eabd47dff57b Mon Sep 17 00:00:00 2001 From: Teemu Toivola Date: Sun, 16 Jun 2019 18:12:11 +0300 Subject: [PATCH] fix bsd compiler warnings and errors --- src/ifinfo.c | 1 - src/misc.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ifinfo.c b/src/ifinfo.c index 52f190c..11d51e3 100644 --- a/src/ifinfo.c +++ b/src/ifinfo.c @@ -172,7 +172,6 @@ int getiflist_linux(iflist **ifl, const int getspeed) #elif defined(BSD_VNSTAT) int getiflist_bsd(iflist **ifl, const int getspeed) { - char temp[64]; struct ifaddrs *ifap, *ifa; if (getifaddrs(&ifap) >= 0) { diff --git a/src/misc.c b/src/misc.c index 5d717e7..4f129db 100644 --- a/src/misc.c +++ b/src/misc.c @@ -1,4 +1,4 @@ -#if !defined(BSD_VNSTAT) +#if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__) && !defined(__APPLE__) && !defined(__FreeBSD_kernel__) #if defined(__clang__) #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wreserved-id-macro" -- 2.40.0