git: c4f4a6c983fd - main - stand: Use c99 structure initialization for network device

From: Warner Losh <imp_at_FreeBSD.org>
Date: Sun, 24 Jul 2022 22:55:37 UTC
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 {