git: 1caaf5558544 - main - 32-bit compat: plug a set-but-not-unused var in freebsd32_copy_msg_out
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 24 Nov 2021 16:25:55 UTC
The branch main has been updated by mjg:
URL: https://cgit.FreeBSD.org/src/commit/?id=1caaf5558544ad672dc7b0e70a2492cdcc5e362e
commit 1caaf5558544ad672dc7b0e70a2492cdcc5e362e
Author: Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2021-11-24 16:15:10 +0000
Commit: Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2021-11-24 16:25:50 +0000
32-bit compat: plug a set-but-not-unused var in freebsd32_copy_msg_out
Sponsored by: Rubicon Communications, LLC ("Netgate")
---
sys/compat/freebsd32/freebsd32_misc.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/sys/compat/freebsd32/freebsd32_misc.c b/sys/compat/freebsd32/freebsd32_misc.c
index e81148d3577c..a51daec85fcd 100644
--- a/sys/compat/freebsd32/freebsd32_misc.c
+++ b/sys/compat/freebsd32/freebsd32_misc.c
@@ -1357,12 +1357,11 @@ freebsd32_copy_msg_out(struct msghdr *msg, struct mbuf *control)
socklen_t clen, datalen, datalen_out, oldclen;
int error;
caddr_t ctlbuf;
- int len, maxlen, copylen;
+ int len, copylen;
struct mbuf *m;
error = 0;
len = msg->msg_controllen;
- maxlen = msg->msg_controllen;
msg->msg_controllen = 0;
ctlbuf = msg->msg_control;