[Pkg-wmaker-commits] [wmifs] 51/118: debian/patches: (fix-compiler-warning.patch) Fix unused but set variable warning. (fix-manpage.patch) Fix Lintian manpage warnings.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Thu Aug 27 02:37:51 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 de4e12c568a56fece4769e6eae123b04c37e92a7
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date:   Thu Oct 23 16:21:51 2014 -0500

    debian/patches: (fix-compiler-warning.patch) Fix unused but set variable
    warning.
    (fix-manpage.patch) Fix Lintian manpage warnings.
---
 debian/patches/fix-compiler-warning.patch | 28 ++++++++++++++++++++++++++++
 debian/patches/fix-manpage.patch          | 22 ++++++++++++++++++++++
 debian/patches/series                     |  2 ++
 3 files changed, 52 insertions(+)

diff --git a/debian/patches/fix-compiler-warning.patch b/debian/patches/fix-compiler-warning.patch
new file mode 100644
index 0000000..cf07983
--- /dev/null
+++ b/debian/patches/fix-compiler-warning.patch
@@ -0,0 +1,28 @@
+Description: Fix compiler warning.
+ In particular, the following warning:
+ wmifs.c:641:28: warning: variable ‘ppp_old’ set but not used
+ [-Wunused-but-set-variable]
+   struct ppp_stats ppp_cur, ppp_old;
+                             ^
+Author: Doug Torrance <dtorrance at monmouthcollege.edu>
+Last-Update: 2014-10-23
+
+--- a/wmifs/wmifs.c
++++ b/wmifs/wmifs.c
+@@ -638,7 +638,7 @@
+ 	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 @@
+ 			if (ppp_h < 0)
+ 				return -1;
+ 			get_ppp_stats(&ppp_cur);
+-			ppp_old = ppp_cur;
+ 			ppp_opened = 1;
+ 		}
+ 
diff --git a/debian/patches/fix-manpage.patch b/debian/patches/fix-manpage.patch
new file mode 100644
index 0000000..8820a03
--- /dev/null
+++ b/debian/patches/fix-manpage.patch
@@ -0,0 +1,22 @@
+Description: Fix manpage.
+ Avoid spelling-error-in-manpage and hyphen-used-as-minus-sign Lintian warnings.
+Author: Doug Torrance <dtorrance at monmouthcollege.edu>
+Last-Update: 2014-10-23
+
+--- a/wmifs/wmifs.1
++++ b/wmifs/wmifs.1
+@@ -12,12 +12,12 @@
+ wmifs \- a dockable network traffic monitor
+ .SH SYNOPSIS
+ .B wmifs
+-[-d <display name>] [-i <interface name>] [-l] [-w] [-h] [-v]
++[\-d <display name>] [\-i <interface name>] [\-l] [\-w] [\-h] [\-v]
+ 
+ .SH DESCRIPTION
+ WMiFS is a dockable applet for X11 that can monitor all your network
+ interfaces. It's designed for WindowMaker's Dock and AfterStep's Wharf,
+-but it's not dependant on these window managers and should work with
++but it's not dependent on these window managers and should work with
+ any other.
+ It can display the net load using a standard bar graph or using a waveform
+ mode. It also displays the state of the interface with a group of leds.
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..3bc6baf
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+fix-manpage.patch
+fix-compiler-warning.patch

-- 
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