[Pkg-wmaker-commits] [wmifs] 78/118: wmifs: Fix "variable 'ppp_old" set but not used" 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 c518f0f83e40540f5d9cbdbb579709d40cd48c63
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date: Wed May 27 17:33:12 2015 -0500
wmifs: Fix "variable 'ppp_old" set but not used" compiler warning.
Based on a patch from the Debian package [1].
[1] https://sources.debian.net/src/wmifs/1.4-2/debian/patches/fix-compiler-warning.patch/
---
wmifs.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/wmifs.c b/wmifs.c
index ecd00e9..c1c2ac9 100644
--- a/wmifs.c
+++ b/wmifs.c
@@ -638,7 +638,7 @@ int get_statistics(char *devname, long *ip, long *op, long *is, long *os)
int input, output;
int i;
int found;
- struct ppp_stats ppp_cur, ppp_old;
+ struct ppp_stats ppp_cur;
static int ppp_opened;
@@ -650,7 +650,6 @@ int get_statistics(char *devname, long *ip, long *op, long *is, long *os)
if (ppp_h < 0)
return -1;
get_ppp_stats(&ppp_cur);
- ppp_old = ppp_cur;
ppp_opened = 1;
}
--
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