[Pkg-wmaker-commits] [wmifinfo] 32/49: wmifinfo: Fix -Wpedantic compiler warning.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Tue Aug 18 02:07:43 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmifinfo.

commit ddc37d57b9d2609525fb7ff52bb815c078339d38
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date:   Mon Dec 8 21:01:53 2014 -0600

    wmifinfo: Fix -Wpedantic compiler warning.
---
 wmifinfo.c | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/wmifinfo.c b/wmifinfo.c
index adb323d..827afec 100644
--- a/wmifinfo.c
+++ b/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) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmifinfo.git



More information about the Pkg-wmaker-commits mailing list