--- embedaddon/miniupnpd/bsd/getifstats.c 2012/02/21 23:16:02 1.1.1.1 +++ embedaddon/miniupnpd/bsd/getifstats.c 2013/07/22 00:32:35 1.1.1.2 @@ -9,8 +9,8 @@ #include #include #include -#include #include +#include #if defined(__FreeBSD__) || defined(__DragonFly__) #include #endif @@ -30,12 +30,12 @@ #include "../getifstats.h" #include "../config.h" -struct nlist list[] = { - {"_ifnet"}, - {NULL} +static struct nlist list[] = { + {"_ifnet", 0, 0, 0, 0}, + {NULL,0, 0, 0, 0} }; -int +int getifstats(const char * ifname, struct ifdata * data) { #if defined(__FreeBSD__) || defined(__DragonFly__)