Use designated initializers for kevent_copyops.

Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
This commit is contained in:
Konstantin Belousov 2017-03-14 09:25:01 +00:00
parent 67d0b0ea60
commit 01feb4c3d4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=315238
2 changed files with 10 additions and 6 deletions

View File

@ -651,9 +651,11 @@ freebsd32_kevent(struct thread *td, struct freebsd32_kevent_args *uap)
{
struct timespec32 ts32;
struct timespec ts, *tsp;
struct kevent_copyops k_ops = { uap,
freebsd32_kevent_copyout,
freebsd32_kevent_copyin};
struct kevent_copyops k_ops = {
.arg = uap,
.k_copyout = freebsd32_kevent_copyout,
.k_copyin = freebsd32_kevent_copyin,
};
int error;

View File

@ -912,9 +912,11 @@ int
sys_kevent(struct thread *td, struct kevent_args *uap)
{
struct timespec ts, *tsp;
struct kevent_copyops k_ops = { uap,
kevent_copyout,
kevent_copyin};
struct kevent_copyops k_ops = {
.arg = uap,
.k_copyout = kevent_copyout,
.k_copyin = kevent_copyin,
};
int error;
#ifdef KTRACE
struct uio ktruio;