git: fc5d0d51aafc - main - stand: Use c99 structure initialization for kboot's hostdisk device
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 24 Jul 2022 22:55:31 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=fc5d0d51aafc1a954a5e9cfa69cd8cdf91824e21
commit fc5d0d51aafc1a954a5e9cfa69cd8cdf91824e21
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-07-24 21:51:19 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-07-24 22:53:34 +0000
stand: Use c99 structure initialization for kboot's hostdisk device
Use c99 structure init for devsw.
Sponsored by: Netflix
---
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