[xl2tpd/el6] Added xl2tpd-1.3.1-Wunused.patch

Paul Wouters pwouters at fedoraproject.org
Tue Jun 12 18:20:13 UTC 2012


commit 325ddc80b0a52c83b21a4ce33f754b0e4d4719ae
Author: Paul Wouters <paul at libreswan.org>
Date:   Tue Jun 12 14:18:18 2012 -0400

    Added xl2tpd-1.3.1-Wunused.patch

 xl2tpd-1.3.1-Wunused.patch |   41 +++++++++++++++++++++++++++++++++++++++++
 1 files changed, 41 insertions(+), 0 deletions(-)
---
diff --git a/xl2tpd-1.3.1-Wunused.patch b/xl2tpd-1.3.1-Wunused.patch
new file mode 100644
index 0000000..67e7cd8
--- /dev/null
+++ b/xl2tpd-1.3.1-Wunused.patch
@@ -0,0 +1,41 @@
+diff --git a/control.c b/control.c
+index 0892df9..a124d04 100644
+--- a/control.c
++++ b/control.c
+@@ -1685,7 +1685,6 @@ void handle_special (struct buffer *buf, struct call *c, _u16 call)
+        * call if it was a CDN, otherwise, send a CDN to notify them
+        * that this call has been terminated.
+      */
+-    struct buffer *outgoing;
+     struct tunnel *t = c->container;
+     /* Don't do anything unless it's a control packet */
+     if (!CTBIT (*((_u16 *) buf->start)))
+@@ -1705,7 +1704,6 @@ void handle_special (struct buffer *buf, struct call *c, _u16 call)
+             return;
+         }
+         /* Make a packet with the specified call number */
+-        outgoing = new_outgoing (t);
+         /* FIXME: If I'm not a CDN, I need to send a CDN */
+         control_zlb (buf, t, c);
+         c->cid = 0;
+diff --git a/network.c b/network.c
+index 783a181..82aedd7 100644
+--- a/network.c
++++ b/network.c
+@@ -377,7 +377,7 @@ void network_thread ()
+      * our network socket.  Control handling is no longer done here.
+      */
+     struct sockaddr_in from, to;
+-    unsigned int fromlen, tolen;
++    unsigned int fromlen;
+     int tunnel, call;           /* Tunnel and call */
+     int recvsize;               /* Length of data received */
+     struct buffer *buf;         /* Payload buffer */
+@@ -443,7 +443,6 @@ void network_thread ()
+ 	    memset(&to,   0, sizeof(to));
+ 	    
+ 	    fromlen = sizeof(from);
+-	    tolen   = sizeof(to);
+ 	    
+ 	    memset(&msgh, 0, sizeof(struct msghdr));
+ 	    iov.iov_base = buf->start;


More information about the scm-commits mailing list