Date: Sat, 18 Mar 2017 03:55:29 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r315471 - in stable/11/sys: compat/freebsd32 kern Message-ID: <201703180355.v2I3tTML009799@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Sat Mar 18 03:55:29 2017 New Revision: 315471 URL: https://svnweb.freebsd.org/changeset/base/315471 Log: MFC r315238: Use designated initializers for kevent_copyops. Modified: stable/11/sys/compat/freebsd32/freebsd32_misc.c stable/11/sys/kern/kern_event.c Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/compat/freebsd32/freebsd32_misc.c ============================================================================== --- stable/11/sys/compat/freebsd32/freebsd32_misc.c Sat Mar 18 03:49:50 2017 (r315470) +++ stable/11/sys/compat/freebsd32/freebsd32_misc.c Sat Mar 18 03:55:29 2017 (r315471) @@ -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: stable/11/sys/kern/kern_event.c ============================================================================== --- stable/11/sys/kern/kern_event.c Sat Mar 18 03:49:50 2017 (r315470) +++ stable/11/sys/kern/kern_event.c Sat Mar 18 03:55:29 2017 (r315471) @@ -884,9 +884,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?201703180355.v2I3tTML009799>