mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 21:05:08 +00:00
Use designated initializers for kevent_copyops.
Sponsored by: The FreeBSD Foundation MFC after: 1 week
This commit is contained in:
parent
67d0b0ea60
commit
01feb4c3d4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=315238
|
@ -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;
|
||||
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue