Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/luna68k/dev Use more C99 designated initializer.



details:   https://anonhg.NetBSD.org/src/rev/e0790a24eb7d
branches:  trunk
changeset: 986315:e0790a24eb7d
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sun Sep 19 11:43:54 2021 +0000

description:
Use more C99 designated initializer.

diffstat:

 sys/arch/luna68k/dev/lunaws.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (31 lines):

diff -r 9246bdfdd77a -r e0790a24eb7d sys/arch/luna68k/dev/lunaws.c
--- a/sys/arch/luna68k/dev/lunaws.c     Sun Sep 19 11:37:00 2021 +0000
+++ b/sys/arch/luna68k/dev/lunaws.c     Sun Sep 19 11:43:54 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lunaws.c,v 1.36 2021/09/19 07:55:17 tsutsui Exp $ */
+/* $NetBSD: lunaws.c,v 1.37 2021/09/19 11:43:54 tsutsui Exp $ */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: lunaws.c,v 1.36 2021/09/19 07:55:17 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lunaws.c,v 1.37 2021/09/19 11:43:54 tsutsui Exp $");
 
 #include "opt_wsdisplay_compat.h"
 #include "wsmouse.h"
@@ -161,9 +161,9 @@
 static void omms_disable(void *);
 
 static const struct wsmouse_accessops omms_accessops = {
-       omms_enable,
-       omms_ioctl,
-       omms_disable,
+       .enable  = omms_enable,
+       .ioctl   = omms_ioctl,
+       .disable = omms_disable,
 };
 #endif
 



Home | Main Index | Thread Index | Old Index