wmifinfo: Fix -Wpedantic compiler warning.

This commit is contained in:
Doug Torrance 2014-12-08 21:01:53 -06:00 committed by Carlos R. Mafra
parent 2c511c999b
commit e6cd763cba

View file

@ -656,6 +656,12 @@ void getifnames(void)
int pifaces;
int i,j;
int isnew;
#ifdef linux
FILE *f;
char buf[128];
char *p1, *p2;
int ifcount;
#endif
/*
* Copy list of interface names and clean the old list
@ -666,11 +672,6 @@ void getifnames(void)
ifaces = 0;
#ifdef linux
FILE *f;
char buf[128];
char *p1, *p2;
int ifcount;
f = fopen("/proc/net/dev", "r");
if(f == NULL) {