git: e6ccedfa686b - stable/13 - stand: Use c99 structure initialization for ext2fs_fsops

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

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

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

    stand: Use c99 structure initialization for ext2fs_fsops
    
    Sponsored by:           Netflix
    
    (cherry picked from commit 12a41918a276c042886cd2741b1f79fc402cd752)
---
 stand/libsa/ext2fs.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/stand/libsa/ext2fs.c b/stand/libsa/ext2fs.c
index b81654552af3..3e91d9fd516f 100644
--- a/stand/libsa/ext2fs.c
+++ b/stand/libsa/ext2fs.c
@@ -108,14 +108,14 @@ static int dtmap[] = { DT_UNKNOWN, DT_REG, DT_DIR, DT_CHR,
 			DT_UNKNOWN : dtmap[x]
 
 struct fs_ops ext2fs_fsops = {
-	"ext2fs",
-	ext2fs_open,
-	ext2fs_close,
-	ext2fs_read,
-	null_write,
-	ext2fs_seek,
-	ext2fs_stat,
-	ext2fs_readdir
+	.fs_name = "ext2fs",
+	.fo_open = ext2fs_open,
+	.fo_close = ext2fs_close,
+	.fo_read = ext2fs_read,
+	.fo_write = null_write,
+	.fo_seek = ext2fs_seek,
+	.fo_stat = ext2fs_stat,
+	.fo_readdir = ext2fs_readdir,
 };
 
 #define	EXT2_SBSIZE	1024