--- wmifinfo/wmifinfo.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/wmifinfo/wmifinfo.c b/wmifinfo/wmifinfo.c index adb323d..827afec 100644 --- a/wmifinfo/wmifinfo.c +++ b/wmifinfo/wmifinfo.c @@ -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) { -- 2.1.0 -- To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.