summaryrefslogtreecommitdiff
path: root/debian/patches/fix-unused0001-libports-remove-unused-variables.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/fix-unused0001-libports-remove-unused-variables.patch')
-rw-r--r--debian/patches/fix-unused0001-libports-remove-unused-variables.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/debian/patches/fix-unused0001-libports-remove-unused-variables.patch b/debian/patches/fix-unused0001-libports-remove-unused-variables.patch
new file mode 100644
index 00000000..a8d205cf
--- /dev/null
+++ b/debian/patches/fix-unused0001-libports-remove-unused-variables.patch
@@ -0,0 +1,42 @@
+From 2496f1c8cb1ccbe6a42a7cab2b50a1deb5ae27d5 Mon Sep 17 00:00:00 2001
+From: Justus Winter <4winter@informatik.uni-hamburg.de>
+Date: Mon, 14 Sep 2015 15:04:55 +0200
+Subject: [PATCH hurd] libports: remove unused variables
+
+* libports/inhibit-all-rpcs.c (ports_inhibit_all_rpcs): Remove unused
+variable `bucket'.
+* libports/inhibit-class-rpcs.c (ports_inhibit_class_rpcs): Remove unused
+variables `pi' and `rpc'.
+---
+ libports/inhibit-all-rpcs.c | 1 -
+ libports/inhibit-class-rpcs.c | 2 --
+ 2 files changed, 3 deletions(-)
+
+diff --git a/libports/inhibit-all-rpcs.c b/libports/inhibit-all-rpcs.c
+index 27e2ec5..71aecf1 100644
+--- a/libports/inhibit-all-rpcs.c
++++ b/libports/inhibit-all-rpcs.c
+@@ -33,7 +33,6 @@ ports_inhibit_all_rpcs ()
+ err = EBUSY;
+ else
+ {
+- struct port_bucket *bucket;
+ int this_one = 0;
+
+ pthread_rwlock_rdlock (&_ports_htable_lock);
+diff --git a/libports/inhibit-class-rpcs.c b/libports/inhibit-class-rpcs.c
+index 9a87a5f..ed99aad 100644
+--- a/libports/inhibit-class-rpcs.c
++++ b/libports/inhibit-class-rpcs.c
+@@ -32,8 +32,6 @@ ports_inhibit_class_rpcs (struct port_class *class)
+ err = EBUSY;
+ else
+ {
+- struct port_info *pi;
+- struct rpc_info *rpc;
+ int this_one = 0;
+
+ pthread_rwlock_rdlock (&_ports_htable_lock);
+--
+2.1.4
+