Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/wscons Use c99 initializer for wsemul_ops



details:   https://anonhg.NetBSD.org/src/rev/d96b0ab9d166
branches:  trunk
changeset: 827564:d96b0ab9d166
user:      maya <maya%NetBSD.org@localhost>
date:      Fri Nov 03 18:42:35 2017 +0000

description:
Use c99 initializer for wsemul_ops

diffstat:

 sys/dev/wscons/wsemul_dumb.c  |  24 ++++++++++++------------
 sys/dev/wscons/wsemul_sun.c   |  24 ++++++++++++------------
 sys/dev/wscons/wsemul_vt100.c |  26 +++++++++++++-------------
 3 files changed, 37 insertions(+), 37 deletions(-)

diffs (139 lines):

diff -r 5453c8442e9f -r d96b0ab9d166 sys/dev/wscons/wsemul_dumb.c
--- a/sys/dev/wscons/wsemul_dumb.c      Fri Nov 03 17:57:58 2017 +0000
+++ b/sys/dev/wscons/wsemul_dumb.c      Fri Nov 03 18:42:35 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wsemul_dumb.c,v 1.16 2017/05/19 19:22:33 macallan Exp $ */
+/* $NetBSD: wsemul_dumb.c,v 1.17 2017/11/03 18:42:35 maya Exp $ */
 
 /*
  * Copyright (c) 1996, 1997 Christopher G. Demetriou.  All rights reserved.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wsemul_dumb.c,v 1.16 2017/05/19 19:22:33 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wsemul_dumb.c,v 1.17 2017/11/03 18:42:35 maya Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -55,16 +55,16 @@
 void   wsemul_dumb_resetop(void *, enum wsemul_resetops);
 
 const struct wsemul_ops wsemul_dumb_ops = {
-       "dumb",
-       wsemul_dumb_cnattach,
-       wsemul_dumb_attach,
-       wsemul_dumb_output,
-       wsemul_dumb_translate,
-       wsemul_dumb_detach,
-       wsemul_dumb_resetop,
-       NULL,   /* getmsgattrs */
-       NULL,   /* setmsgattrs */
-       NULL    /* resize */
+       .name = "dumb",
+       .cnattach = wsemul_dumb_cnattach,
+       .attach = wsemul_dumb_attach,
+       .output = wsemul_dumb_output,
+       .translate = wsemul_dumb_translate,
+       .detach = wsemul_dumb_detach,
+       .reset = wsemul_dumb_resetop,
+       .getmsgattrs = NULL,
+       .setmsgattrs = NULL,
+       .resize = NULL,
 };
 
 struct wsemul_dumb_emuldata {
diff -r 5453c8442e9f -r d96b0ab9d166 sys/dev/wscons/wsemul_sun.c
--- a/sys/dev/wscons/wsemul_sun.c       Fri Nov 03 17:57:58 2017 +0000
+++ b/sys/dev/wscons/wsemul_sun.c       Fri Nov 03 18:42:35 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wsemul_sun.c,v 1.31 2017/11/03 17:57:58 maya Exp $ */
+/* $NetBSD: wsemul_sun.c,v 1.32 2017/11/03 18:42:35 maya Exp $ */
 
 /*
  * Copyright (c) 1996, 1997 Christopher G. Demetriou.  All rights reserved.
@@ -33,7 +33,7 @@
 /* XXX DESCRIPTION/SOURCE OF INFORMATION */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wsemul_sun.c,v 1.31 2017/11/03 17:57:58 maya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wsemul_sun.c,v 1.32 2017/11/03 18:42:35 maya Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -58,16 +58,16 @@
 void   wsemul_sun_resetop(void *, enum wsemul_resetops);
 
 const struct wsemul_ops wsemul_sun_ops = {
-       "sun",
-       wsemul_sun_cnattach,
-       wsemul_sun_attach,
-       wsemul_sun_output,
-       wsemul_sun_translate,
-       wsemul_sun_detach,
-       wsemul_sun_resetop,
-       NULL,   /* getmsgattrs */
-       NULL,   /* setmsgattrs */
-       NULL    /* resize */
+       .name = "sun",
+       .cnattach = wsemul_sun_cnattach,
+       .attach = wsemul_sun_attach,
+       .output = wsemul_sun_output,
+       .translate = wsemul_sun_translate,
+       .detach = wsemul_sun_detach,
+       .reset = wsemul_sun_resetop,
+       .getmsgattrs = NULL,
+       .setmsgattrs = NULL,
+       .resize = NULL,
 };
 
 #define        SUN_EMUL_STATE_NORMAL   0       /* normal processing */
diff -r 5453c8442e9f -r d96b0ab9d166 sys/dev/wscons/wsemul_vt100.c
--- a/sys/dev/wscons/wsemul_vt100.c     Fri Nov 03 17:57:58 2017 +0000
+++ b/sys/dev/wscons/wsemul_vt100.c     Fri Nov 03 18:42:35 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wsemul_vt100.c,v 1.39 2017/11/03 17:57:58 maya Exp $ */
+/* $NetBSD: wsemul_vt100.c,v 1.40 2017/11/03 18:42:35 maya Exp $ */
 
 /*
  * Copyright (c) 1998
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wsemul_vt100.c,v 1.39 2017/11/03 17:57:58 maya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wsemul_vt100.c,v 1.40 2017/11/03 18:42:35 maya Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_wsmsgattrs.h"
@@ -60,19 +60,19 @@
 static void wsemul_vt100_resize(void *, const struct wsscreen_descr *);
 
 const struct wsemul_ops wsemul_vt100_ops = {
-       "vt100",
-       wsemul_vt100_cnattach,
-       wsemul_vt100_attach,
-       wsemul_vt100_output,
-       wsemul_vt100_translate,
-       wsemul_vt100_detach,
-       wsemul_vt100_resetop,
+       .name = "vt100",
+       .cnattach = wsemul_vt100_cnattach,
+       .attach = wsemul_vt100_attach,
+       .output = wsemul_vt100_output,
+       .translate = wsemul_vt100_translate,
+       .detach = wsemul_vt100_detach,
+       .reset = wsemul_vt100_resetop,
 #ifdef WSDISPLAY_CUSTOM_OUTPUT
-       wsemul_vt100_getmsgattrs,
-       wsemul_vt100_setmsgattrs,
+       .getmsgattrs = wsemul_vt100_getmsgattrs,
+       .setmsgattrs = wsemul_vt100_setmsgattrs,
 #else
-       NULL,
-       NULL,
+       .getmsgattrs = NULL,
+       .setmsgattrs = NULL,
 #endif
        .resize = wsemul_vt100_resize
 };



Home | Main Index | Thread Index | Old Index