Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Use designated initializers
details: https://anonhg.NetBSD.org/src/rev/3fb0925b0b42
branches: trunk
changeset: 744442:3fb0925b0b42
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Feb 01 15:24:04 2020 +0000
description:
Use designated initializers
diffstat:
sys/dev/ic/com.c | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diffs (32 lines):
diff -r cd2d21d40447 -r 3fb0925b0b42 sys/dev/ic/com.c
--- a/sys/dev/ic/com.c Sat Feb 01 13:48:18 2020 +0000
+++ b/sys/dev/ic/com.c Sat Feb 01 15:24:04 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: com.c,v 1.356 2019/11/10 21:16:35 chs Exp $ */
+/* $NetBSD: com.c,v 1.357 2020/02/01 15:24:04 skrll Exp $ */
/*-
* Copyright (c) 1998, 1999, 2004, 2008 The NetBSD Foundation, Inc.
@@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: com.c,v 1.356 2019/11/10 21:16:35 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: com.c,v 1.357 2020/02/01 15:24:04 skrll Exp $");
#include "opt_com.h"
#include "opt_ddb.h"
@@ -192,8 +192,11 @@
* Following are all routines needed for COM to act as console
*/
static struct consdev comcons = {
- NULL, NULL, comcngetc, comcnputc, comcnpollc, NULL, NULL, NULL,
- NODEV, CN_NORMAL
+ .cn_getc = comcngetc,
+ .cn_putc = comcnputc,
+ .cn_pollc = comcnpollc,
+ .cn_dev = NODEV,
+ .cn_pri = CN_NORMAL
};
Home |
Main Index |
Thread Index |
Old Index