git: 149e49d353e6 - stable/13 - stand: Use c99 structure initialization for userboot block device

From: Warner Losh <imp_at_FreeBSD.org>
Date: Tue, 24 Jan 2023 22:11:13 UTC
The branch stable/13 has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=149e49d353e67a67e45507051321df4a8fb12ae0

commit 149e49d353e67a67e45507051321df4a8fb12ae0
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-07-24 21:51:27 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-01-24 21:49:25 +0000

    stand: Use c99 structure initialization for userboot block device
    
    Use c99 structure init for devsw.
    
    Sponsored by:           Netflix
    
    (cherry picked from commit 4c460aaf8342ec80216dd0e7f876903d75790c2f)
---
 stand/userboot/userboot/userboot_disk.c | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/stand/userboot/userboot/userboot_disk.c b/stand/userboot/userboot/userboot_disk.c
index caaa3373812b..ed8a6dbdbbfb 100644
--- a/stand/userboot/userboot/userboot_disk.c
+++ b/stand/userboot/userboot/userboot_disk.c
@@ -63,15 +63,15 @@ static int	userdisk_ioctl(struct open_file *f, u_long cmd, void *data);
 static int	userdisk_print(int verbose);
 
 struct devsw userboot_disk = {
-	"disk",
-	DEVT_DISK,
-	userdisk_init,
-	userdisk_strategy,
-	userdisk_open,
-	userdisk_close,
-	userdisk_ioctl,
-	userdisk_print,
-	userdisk_cleanup
+	.dv_name = "disk",
+	.dv_type = DEVT_DISK,
+	.dv_init = userdisk_init,
+	.dv_strategy = userdisk_strategy,
+	.dv_open = userdisk_open,
+	.dv_close = userdisk_close,
+	.dv_ioctl = userdisk_ioctl,
+	.dv_print = userdisk_print,
+	.dv_cleanup = userdisk_cleanup,
 };
 
 /*