git: ff2b7167c3db - stable/13 - stand: Use c99 structure initialization for kboot's hostdisk device

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

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

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

    stand: Use c99 structure initialization for kboot's hostdisk device
    
    Use c99 structure init for devsw.
    
    Sponsored by:           Netflix
    
    (cherry picked from commit fc5d0d51aafc1a954a5e9cfa69cd8cdf91824e21)
---
 stand/kboot/hostdisk.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/stand/kboot/hostdisk.c b/stand/kboot/hostdisk.c
index 3c36f2d3bce6..25348c60fc97 100644
--- a/stand/kboot/hostdisk.c
+++ b/stand/kboot/hostdisk.c
@@ -40,14 +40,14 @@ static int hostdisk_ioctl(struct open_file *f, u_long cmd, void *data);
 static int hostdisk_print(int verbose);
 
 struct devsw hostdisk = {
-	"/dev",
-	DEVT_DISK,
-	hostdisk_init,
-	hostdisk_strategy,
-	hostdisk_open,
-	hostdisk_close,
-	hostdisk_ioctl,
-	hostdisk_print,
+	.dv_name = "/dev",
+	.dv_type = DEVT_DISK,
+	.dv_init = hostdisk_init,
+	.dv_strategy = hostdisk_strategy,
+	.dv_open = hostdisk_open,
+	.dv_close = hostdisk_close,
+	.dv_ioctl = hostdisk_ioctl,
+	.dv_print = hostdisk_print,
 };
 
 static int