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 timespec32 ts32;
|
||||||
struct timespec ts, *tsp;
|
struct timespec ts, *tsp;
|
||||||
struct kevent_copyops k_ops = { uap,
|
struct kevent_copyops k_ops = {
|
||||||
freebsd32_kevent_copyout,
|
.arg = uap,
|
||||||
freebsd32_kevent_copyin};
|
.k_copyout = freebsd32_kevent_copyout,
|
||||||
|
.k_copyin = freebsd32_kevent_copyin,
|
||||||
|
};
|
||||||
int error;
|
int error;
|
||||||
|
|
||||||
|
|
||||||
|
@ -912,9 +912,11 @@ int
|
|||||||
sys_kevent(struct thread *td, struct kevent_args *uap)
|
sys_kevent(struct thread *td, struct kevent_args *uap)
|
||||||
{
|
{
|
||||||
struct timespec ts, *tsp;
|
struct timespec ts, *tsp;
|
||||||
struct kevent_copyops k_ops = { uap,
|
struct kevent_copyops k_ops = {
|
||||||
kevent_copyout,
|
.arg = uap,
|
||||||
kevent_copyin};
|
.k_copyout = kevent_copyout,
|
||||||
|
.k_copyin = kevent_copyin,
|
||||||
|
};
|
||||||
int error;
|
int error;
|
||||||
#ifdef KTRACE
|
#ifdef KTRACE
|
||||||
struct uio ktruio;
|
struct uio ktruio;
|
||||||
|
Loading…
Reference in New Issue
Block a user