Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hp300/dev Use C99 designated initializers for struc...
details: https://anonhg.NetBSD.org/src/rev/10a9a6cc6257
branches: trunk
changeset: 948711:10a9a6cc6257
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Tue Dec 29 16:02:01 2020 +0000
description:
Use C99 designated initializers for struct consdev.
diffstat:
sys/arch/hp300/dev/dcm.c | 19 +++++++------------
1 files changed, 7 insertions(+), 12 deletions(-)
diffs (40 lines):
diff -r 21f7b3a0878a -r 10a9a6cc6257 sys/arch/hp300/dev/dcm.c
--- a/sys/arch/hp300/dev/dcm.c Tue Dec 29 15:49:45 2020 +0000
+++ b/sys/arch/hp300/dev/dcm.c Tue Dec 29 16:02:01 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dcm.c,v 1.88 2014/11/15 19:20:01 christos Exp $ */
+/* $NetBSD: dcm.c,v 1.89 2020/12/29 16:02:01 tsutsui Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -78,7 +78,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dcm.c,v 1.88 2014/11/15 19:20:01 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dcm.c,v 1.89 2020/12/29 16:02:01 tsutsui Exp $");
#include "opt_kgdb.h"
@@ -306,16 +306,11 @@
#endif
static struct consdev dcm_cons = {
- NULL,
- NULL,
- dcmcngetc,
- dcmcnputc,
- nullcnpollc,
- NULL,
- NULL,
- NULL,
- NODEV,
- CN_REMOTE
+ .cn_getc = dcmcngetc,
+ .cn_putc = dcmcnputc,
+ .cn_pollc = nullcnpollc,
+ .cn_dev = NODEV,
+ .cn_pri = CN_REMOTE
};
int dcmconscode;
int dcmdefaultrate = DEFAULT_BAUD_RATE;
Home |
Main Index |
Thread Index |
Old Index