You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
xl2tpd/xl2tpd-1.3.1-Wunused.patch

42 lines
1.5 KiB

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;