Date: Tue, 14 Mar 2017 09:25:02 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r315238 - in head/sys: compat/freebsd32 kern Message-ID: <201703140925.v2E9P2Oh053874@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Tue Mar 14 09:25:01 2017 New Revision: 315238 URL: https://svnweb.freebsd.org/changeset/base/315238 Log: Use designated initializers for kevent_copyops. Sponsored by: The FreeBSD Foundation MFC after: 1 week Modified: head/sys/compat/freebsd32/freebsd32_misc.c head/sys/kern/kern_event.c Modified: head/sys/compat/freebsd32/freebsd32_misc.c ============================================================================== --- head/sys/compat/freebsd32/freebsd32_misc.c Tue Mar 14 08:45:52 2017 (r315237) +++ head/sys/compat/freebsd32/freebsd32_misc.c Tue Mar 14 09:25:01 2017 (r315238) @@ -651,9 +651,11 @@ freebsd32_kevent(struct thread *td, stru { 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; Modified: head/sys/kern/kern_event.c ============================================================================== --- head/sys/kern/kern_event.c Tue Mar 14 08:45:52 2017 (r315237) +++ head/sys/kern/kern_event.c Tue Mar 14 09:25:01 2017 (r315238) @@ -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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703140925.v2E9P2Oh053874>