git: e72a01f1325f - main - stand: Use c99 structure initialization for ofw's block device
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 24 Jul 2022 22:55:32 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=e72a01f1325f50326f02209d75203b97d6bfca88
commit e72a01f1325f50326f02209d75203b97d6bfca88
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-07-24 21:51:21 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-07-24 22:53:34 +0000
stand: Use c99 structure initialization for ofw's block device
Use c99 structure init for devsw.
Sponsored by: Netflix
---
stand/libofw/ofw_disk.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/stand/libofw/ofw_disk.c b/stand/libofw/ofw_disk.c
index 2c3bd568a268..8af5750b13bc 100644
--- a/stand/libofw/ofw_disk.c
+++ b/stand/libofw/ofw_disk.c
@@ -51,14 +51,14 @@ static int ofwd_ioctl(struct open_file *f, u_long cmd, void *data);
static int ofwd_print(int verbose);
struct devsw ofwdisk = {
- "block",
- DEVT_DISK,
- ofwd_init,
- ofwd_strategy,
- ofwd_open,
- ofwd_close,
- ofwd_ioctl,
- ofwd_print
+ .dv_name = "block",
+ .dv_type = DEVT_DISK,
+ .dv_init = ofwd_init,
+ .dv_strategy = ofwd_strategy,
+ .dv_open = ofwd_open,
+ .dv_close = ofwd_close,
+ .dv_ioctl = ofwd_ioctl,
+ .dv_print = ofwd_print,
};
/*