[tcptrack] Fix an "unused variable" warning which cause an error because of -Werror
jiteshs
jiteshs at fedoraproject.org
Fri Jul 15 07:01:54 UTC 2011
commit 8733ca0ec16b799572455de9c9a0e8cc2e84ae25
Author: Jitesh Shah <jitesh.1337 at gmail.com>
Date: Fri Jul 15 00:00:34 2011 -0700
Fix an "unused variable" warning which cause an error because of -Werror
Signed-off-by: Jitesh Shah <jitesh.1337 at gmail.com>
tcptrack-1.4.0-unused-var.patch | 15 +++++++++++++++
tcptrack.spec | 7 ++++++-
2 files changed, 21 insertions(+), 1 deletions(-)
---
diff --git a/tcptrack-1.4.0-unused-var.patch b/tcptrack-1.4.0-unused-var.patch
new file mode 100644
index 0000000..ec24e39
--- /dev/null
+++ b/tcptrack-1.4.0-unused-var.patch
@@ -0,0 +1,15 @@
+diff -dur tcptrack-1.4.0-old/src/TextUI.cc tcptrack-1.4.0/src/TextUI.cc
+--- tcptrack-1.4.0-old/src/TextUI.cc 2011-07-14 23:55:36.395874859 -0700
++++ tcptrack-1.4.0/src/TextUI.cc 2011-07-14 23:57:56.714722725 -0700
+@@ -119,11 +119,6 @@
+ // main drawer thread loop
+ void TextUI::displayer_run()
+ {
+- // redraw the display this freqently...
+- struct timespec t;
+- t.tv_sec=0;
+- t.tv_nsec=DISPLAY_REFRESH;
+-
+ // used for select(), to grab keyboard input when there is some.
+ fd_set fdset;
+ struct timeval tv;
diff --git a/tcptrack.spec b/tcptrack.spec
index ad79c27..bb74378 100644
--- a/tcptrack.spec
+++ b/tcptrack.spec
@@ -1,6 +1,6 @@
Name: tcptrack
Version: 1.4.0
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Displays information about tcp connections on a network interface
Group: Applications/System
@@ -10,6 +10,7 @@ Source0: http://www.rhythm.cx/~steve/devel/%{name}/release/%{version}/sou
Patch0: tcptrack-1.3.0-util.patch
#Increase text ui select timeout to 10000 usec, upstream agrees
Patch1: tcptrack-1.4.0-timeout.patch
+Patch2: tcptrack-1.4.0-unused-var.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: ncurses-devel
@@ -27,6 +28,7 @@ and bandwidth usage
%setup -q
%patch0 -p1 -b .util
%patch1 -p1 -b .timeout
+%patch2 -p1 -b .unused
%build
%configure
@@ -50,6 +52,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Thu Jul 14 2011 Jitesh Shah <jitesh.1337 at gmail.com> - 1.4.0-3
+- Fixed a build fault
+
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.4.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
More information about the scm-commits
mailing list