uipc: ansify

Sponsored by:	Rubicon Communications, LLC ("Netgate")
This commit is contained in:
Mateusz Guzik 2023-02-13 18:20:29 +00:00
parent e4542107d8
commit 00343b4adc

View File

@ -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 @@ kern_accept4(struct thread *td, int s, struct sockaddr **name,
}
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))