]> granicus.if.org Git - vnstat/commitdiff
fix BSD compilation that was broken few commits ago
authorTeemu Toivola <git@humdi.net>
Fri, 9 Jan 2015 19:36:07 +0000 (21:36 +0200)
committerTeemu Toivola <git@humdi.net>
Fri, 9 Jan 2015 19:36:07 +0000 (21:36 +0200)
src/ifinfo.c

index c1e9f09da3d30b2194f284d6f374c4122042239b..dd99e1ea5ab8365a806a68177afc8609f521c105 100644 (file)
@@ -46,12 +46,13 @@ int getifinfo(const char *iface)
 int getiflist(char **ifacelist, int showspeed)
 {
        uint32_t speed;
+       char temp[64];
 #if defined(__linux__)
        char interface[32];
        FILE *fp;
        DIR *dp;
        struct dirent *di;
-       char procline[512], temp[64];
+       char procline[512];
 #elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__) || defined(__FreeBSD_kernel__)
        struct ifaddrs *ifap, *ifa;
 #endif