Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/luna68k/dev Use C99 designated initializer.
details: https://anonhg.NetBSD.org/src/rev/29b945f02cbf
branches: trunk
changeset: 1023351:29b945f02cbf
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sat Sep 04 12:44:23 2021 +0000
description:
Use C99 designated initializer.
diffstat:
sys/arch/luna68k/dev/siotty.c | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
diffs (45 lines):
diff -r 79acb895345a -r 29b945f02cbf sys/arch/luna68k/dev/siotty.c
--- a/sys/arch/luna68k/dev/siotty.c Sat Sep 04 12:38:13 2021 +0000
+++ b/sys/arch/luna68k/dev/siotty.c Sat Sep 04 12:44:23 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: siotty.c,v 1.48 2021/09/04 12:38:13 tsutsui Exp $ */
+/* $NetBSD: siotty.c,v 1.49 2021/09/04 12:44:23 tsutsui Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: siotty.c,v 1.48 2021/09/04 12:38:13 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: siotty.c,v 1.49 2021/09/04 12:44:23 tsutsui Exp $");
#include "opt_ddb.h"
@@ -692,16 +692,16 @@
/*--------------------- console interface ----------------------*/
struct consdev syscons = {
- NULL,
- NULL,
- syscngetc,
- syscnputc,
- nullcnpollc,
- NULL,
- NULL,
- NULL,
- NODEV,
- CN_REMOTE,
+ .cn_probe = NULL,
+ .cn_init = NULL,
+ .cn_getc = syscngetc,
+ .cn_putc = syscnputc,
+ .cn_pollc = nullcnpollc,
+ .cn_bell = NULL,
+ .cn_halt = NULL,
+ .cn_flush = NULL,
+ .cn_dev = NODEV,
+ .cn_pri = CN_REMOTE,
};
/* EXPORT */ void
Home |
Main Index |
Thread Index |
Old Index