git: e5fc5a645485 - stable/13 - stand: Use c99 structure initialization for network device

From: Warner Losh <imp_at_FreeBSD.org>
Date: Tue, 24 Jan 2023 22:11:15 UTC
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 {