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 designated initializers for struct co...



details:   https://anonhg.NetBSD.org/src/rev/98259681ddc2
branches:  trunk
changeset: 958127:98259681ddc2
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Fri Dec 25 21:12:15 2020 +0000

description:
Use C99 designated initializers for struct consdev.

diffstat:

 sys/dev/wscons/wsdisplay.c |  11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diffs (32 lines):

diff -r b88c0e13bdf0 -r 98259681ddc2 sys/dev/wscons/wsdisplay.c
--- a/sys/dev/wscons/wsdisplay.c        Fri Dec 25 20:41:24 2020 +0000
+++ b/sys/dev/wscons/wsdisplay.c        Fri Dec 25 21:12:15 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wsdisplay.c,v 1.160 2019/12/06 07:12:39 maxv Exp $ */
+/* $NetBSD: wsdisplay.c,v 1.161 2020/12/25 21:12:15 tsutsui Exp $ */
 
 /*
  * Copyright (c) 1996, 1997 Christopher G. Demetriou.  All rights reserved.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wsdisplay.c,v 1.160 2019/12/06 07:12:39 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wsdisplay.c,v 1.161 2020/12/25 21:12:15 tsutsui Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_wsdisplay_compat.h"
@@ -255,8 +255,11 @@
 static void (*wsdisplay_cons_kbd_pollc)(dev_t, int);
 
 static struct consdev wsdisplay_cons = {
-       NULL, NULL, wsdisplay_getc, wsdisplay_cnputc,
-       wsdisplay_pollc, NULL, NULL, NULL, NODEV, CN_NORMAL
+       .cn_getc = wsdisplay_getc,
+       .cn_putc = wsdisplay_cnputc,
+       .cn_pollc = wsdisplay_pollc,
+       .cn_dev = NODEV,
+       .cn_pri = CN_NORMAL
 };
 
 #ifndef WSDISPLAY_DEFAULTSCREENS



Home | Main Index | Thread Index | Old Index