git: 00343b4adcfa - main - uipc: ansify
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 13 Feb 2023 18:24:41 UTC
The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=00343b4adcfa01d7e64ae345768af8f11a10d816 commit 00343b4adcfa01d7e64ae345768af8f11a10d816 Author: Mateusz Guzik <mjg@FreeBSD.org> AuthorDate: 2023-02-13 18:20:29 +0000 Commit: Mateusz Guzik <mjg@FreeBSD.org> CommitDate: 2023-02-13 18:20:29 +0000 uipc: ansify Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/kern/uipc_syscalls.c | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/sys/kern/uipc_syscalls.c b/sys/kern/uipc_syscalls.c index cbf45e53f96f..496e93d76bb0 100644 --- a/sys/kern/uipc_syscalls.c +++ b/sys/kern/uipc_syscalls.c @@ -278,12 +278,8 @@ kern_listen(struct thread *td, int s, int backlog) * accept1() */ static int -accept1(td, s, uname, anamelen, flags) - struct thread *td; - int s; - struct sockaddr *uname; - socklen_t *anamelen; - int flags; +accept1(struct thread *td, int s, struct sockaddr *uname, socklen_t *anamelen, + int flags) { struct sockaddr *name; socklen_t namelen; @@ -447,18 +443,14 @@ done: } int -sys_accept(td, uap) - struct thread *td; - struct accept_args *uap; +sys_accept(struct thread *td, struct accept_args *uap) { return (accept1(td, uap->s, uap->name, uap->anamelen, ACCEPT4_INHERIT)); } int -sys_accept4(td, uap) - struct thread *td; - struct accept4_args *uap; +sys_accept4(struct thread *td, struct accept4_args *uap) { if (uap->flags & ~(SOCK_CLOEXEC | SOCK_NONBLOCK))