[Pkg-wmaker-commits] [wmifs] 80/118: wmifs: Fix "suggest braces around empty body in an ‘if’ statement" compiler warning.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Thu Aug 27 02:37:54 UTC 2015


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

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

commit 1a7c50f293bd7b0ae7a2e7357ff354b37fe46c79
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date:   Wed May 27 17:33:14 2015 -0500

    wmifs: Fix "suggest braces around empty body in an ‘if’ statement" compiler warning.
---
 wmifs.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/wmifs.c b/wmifs.c
index c1c2ac9..c124cc3 100644
--- a/wmifs.c
+++ b/wmifs.c
@@ -961,8 +961,9 @@ void get_ppp_stats(struct ppp_stats *cur)
 
 	sprintf(req.ifr__name, "ppp%d", PPP_UNIT);
 
-	if (ioctl(ppp_h, SIOCGPPPSTATS, &req) < 0)
+	if (ioctl(ppp_h, SIOCGPPPSTATS, &req) < 0) {
 		/* fprintf(stderr, "heyho!\n") */;
+	}
 	*cur = req.stats;
 }
 

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



More information about the Pkg-wmaker-commits mailing list