git: ac4e3a27ab49 - main - Unbreak the build when MAC is not defined
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 14 Dec 2022 22:39:39 UTC
The branch main has been updated by gallatin: URL: https://cgit.FreeBSD.org/src/commit/?id=ac4e3a27ab499d3401e8810c6a11713e6ed6f76b commit ac4e3a27ab499d3401e8810c6a11713e6ed6f76b Author: Andrew Gallatin <gallatin@FreeBSD.org> AuthorDate: 2022-12-14 22:33:30 +0000 Commit: Andrew Gallatin <gallatin@FreeBSD.org> CommitDate: 2022-12-14 22:39:25 +0000 Unbreak the build when MAC is not defined 7a2c93b86ef7 removed the use of "error" when MAC was not defined, resulting in an unused variable error. Sponsored by: Netflix Reviewed by: jhb --- sys/kern/sys_socket.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/kern/sys_socket.c b/sys/kern/sys_socket.c index 5cfb366c150b..2ad76b15cee6 100644 --- a/sys/kern/sys_socket.c +++ b/sys/kern/sys_socket.c @@ -145,7 +145,8 @@ soo_write(struct file *fp, struct uio *uio, struct ucred *active_cred, if (error) return (error); #endif - return (sousrsend(so, NULL, uio, NULL, 0, NULL)); + error = sousrsend(so, NULL, uio, NULL, 0, NULL); + return (error); } static int