Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/alpha/alpha Use designated initialisers



details:   https://anonhg.NetBSD.org/src/rev/8c97ff6085db
branches:  trunk
changeset: 745022:8c97ff6085db
user:      skrll <skrll%NetBSD.org@localhost>
date:      Fri Feb 21 13:33:07 2020 +0000

description:
Use designated initialisers

diffstat:

 sys/arch/alpha/alpha/prom.c |  13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diffs (34 lines):

diff -r b0b32efe1371 -r 8c97ff6085db sys/arch/alpha/alpha/prom.c
--- a/sys/arch/alpha/alpha/prom.c       Fri Feb 21 13:32:31 2020 +0000
+++ b/sys/arch/alpha/alpha/prom.c       Fri Feb 21 13:33:07 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: prom.c,v 1.50 2018/09/03 16:29:22 riastradh Exp $ */
+/* $NetBSD: prom.c,v 1.51 2020/02/21 13:33:07 skrll Exp $ */
 
 /*
  * Copyright (c) 1992, 1994, 1995, 1996 Carnegie Mellon University
@@ -27,7 +27,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: prom.c,v 1.50 2018/09/03 16:29:22 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: prom.c,v 1.51 2020/02/21 13:33:07 skrll Exp $");
 
 #include "opt_multiprocessor.h"
 
@@ -46,8 +46,13 @@
 #include <dev/cons.h>
 
 /* XXX this is to fake out the console routines, while booting. */
-struct consdev promcons = { NULL, NULL, promcngetc, promcnputc,
-                           nullcnpollc, NULL, NULL, NULL, makedev(23,0), 1 };
+struct consdev promcons = {
+       .cn_getc = promcngetc,
+       .cn_putc = promcnputc,
+       .cn_pollc = nullcnpollc,
+       .cn_dev = makedev(23,0),
+       .cn_pri = 1
+};
 
 struct rpb     *hwrpb;
 int            alpha_console;



Home | Main Index | Thread Index | Old Index