[debian-edu-commits] debian-edu/pkg-team/ 01/01: Add new unused-variables.patch to get rid of the last two compiler warnings by removing two unused variables.

Petter Reinholdtsen pere at moszumanska.debian.org
Wed Oct 1 12:07:58 UTC 2014


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

pere pushed a commit to branch master
in repository ldap2zone.

commit fd784ab5d3a117e1031824f282ec1a219790d6e6
Author: Petter Reinholdtsen <pere at hungry.com>
Date:   Wed Oct 1 14:07:51 2014 +0200

    Add new unused-variables.patch to get rid of the last two compiler warnings by removing two unused variables.
---
 debian/patches/series                 |  1 +
 debian/patches/unused-variables.patch | 19 +++++++++++++++++++
 2 files changed, 20 insertions(+)

diff --git a/debian/patches/series b/debian/patches/series
index 8bda0ff..63af6b3 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -5,3 +5,4 @@ revert-broken-zones.patch
 stable-zone-ordering.patch
 avoid-signed-unsigned-warning.patch
 hardening.patch
+unused-variables.patch
diff --git a/debian/patches/unused-variables.patch b/debian/patches/unused-variables.patch
new file mode 100644
index 0000000..31e919c
--- /dev/null
+++ b/debian/patches/unused-variables.patch
@@ -0,0 +1,19 @@
+Description: Remove unused variables sizelimit and timeout.
+ Get rid of the last compiler warnings by removing unused variables.
+Author: Petter Reinholdtsen <pere at hungry.com>
+Last-Update: 2014-10-01
+
+--- ldap2zone-0.2.orig/ldap2zone.c
++++ ldap2zone-0.2/ldap2zone.c
+@@ -260,10 +260,9 @@ int main(int argc, char **argv) {
+     struct berval **vals, **names, **ttlvals, **soavals;
+     char type[64];
+     BerElement *ptr;
+-    int i, j, rc, msgid,msgidp,sizelimit = 0;
++    int i, j, rc, msgid,msgidp;
+     struct assstack_entry *zone = NULL;
+     LDAPControl **server = NULL, **client = NULL;
+-    struct timeval  timeout;
+ 
+     if (argc < 4 || argc > 5)
+         usage(argv[0]);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/pkg-team/ldap2zone.git



More information about the debian-edu-commits mailing list