aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2022-07-24 21:51:15 +0000
committerWarner Losh <imp@FreeBSD.org>2023-01-24 21:49:25 +0000
commit8b50c54588ba13d809d0bff9c2a580be900dff5a (patch)
treeaf3074eec2b8065064d3afabe4a7efc1b185f3b4
parent0d3b88bc5a8b45d9e0815126e12344dbbc689df7 (diff)
stand: Use c99 structure initialization for md device
Use c99 structure init for devsw. Sponsored by: Netflix (cherry picked from commit 143452f7609fc232ba9ae625a1f87d12449ff55b)
-rw-r--r--stand/common/md.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/stand/common/md.c b/stand/common/md.c
index 5585218b3276..e9fcac668d93 100644
--- a/stand/common/md.c
+++ b/stand/common/md.c
@@ -66,15 +66,14 @@ static int md_close(struct open_file *);
static int md_print(int);
struct devsw md_dev = {
- "md",
- DEVT_DISK,
- md_init,
- md_strategy,
- md_open,
- md_close,
- noioctl,
- md_print,
- NULL
+ .dv_name = "md",
+ .dv_type = DEVT_DISK,
+ .dv_init = md_init,
+ .dv_strategy = md_strategy,
+ .dv_open = md_open,
+ .dv_close = md_close,
+ .dv_ioctl = noioctl,
+ .dv_print = md_print,
};
static int