Use designated initializers

This commit is contained in:
skrll 2020-02-01 15:24:04 +00:00
parent f3ecae1cb1
commit 4481a897c2
1 changed files with 7 additions and 4 deletions

View File

@ -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 @@ static struct comcons_info comcons_info;
* 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
};