Date: Tue, 24 Jan 2023 22:11:15 GMT From: Warner Losh <imp@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: e5fc5a645485 - stable/13 - stand: Use c99 structure initialization for network device Message-ID: <202301242211.30OMBFkG083681@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=e5fc5a645485c2e415a3eb1facbdf6244e54e794 commit e5fc5a645485c2e415a3eb1facbdf6244e54e794 Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2022-07-24 21:51:32 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2023-01-24 21:49:26 +0000 stand: Use c99 structure initialization for network device Use c99 structure init for devsw. Sponsored by: Netflix (cherry picked from commit c4f4a6c983fdadfc343344152cfc571a00a1e07a) --- 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?202301242211.30OMBFkG083681>