Date: Sun, 24 Jul 2022 22:55:37 GMT From: Warner Losh <imp@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: c4f4a6c983fd - main - stand: Use c99 structure initialization for network device Message-ID: <202207242255.26OMtbCG004450@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=c4f4a6c983fdadfc343344152cfc571a00a1e07a commit c4f4a6c983fdadfc343344152cfc571a00a1e07a Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2022-07-24 21:51:32 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2022-07-24 22:53:34 +0000 stand: Use c99 structure initialization for network device Use c99 structure init for devsw. Sponsored by: Netflix --- stand/common/dev_net.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/stand/common/dev_net.c b/stand/common/dev_net.c index 70b571047d56..24bfbe9636e3 100644 --- a/stand/common/dev_net.c +++ b/stand/common/dev_net.c @@ -86,15 +86,15 @@ static int net_print(int); static int net_getparams(int sock); struct devsw netdev = { - "net", - DEVT_NET, - net_init, - net_strategy, - net_open, - net_close, - noioctl, - net_print, - net_cleanup + .dv_name = "net", + .dv_type = DEVT_NET, + .dv_init = net_init, + .dv_strategy = net_strategy, + .dv_open = net_open, + .dv_close = net_close, + .dv_ioctl = noioctl, + .dv_print = net_print, + .dv_cleanup = net_cleanup, }; static struct uri_scheme {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202207242255.26OMtbCG004450>