git: f7a380dd5589 - stable/13 - stand: Use c99 structure initialization for nfs_fsops

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

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

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

    stand: Use c99 structure initialization for nfs_fsops
    
    Sponsored by:           Netflix
    
    (cherry picked from commit 90a7e556a42263ea10ca931621f168bc3f07a5ff)
---
 stand/libsa/nfs.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/stand/libsa/nfs.c b/stand/libsa/nfs.c
index 5757395caba2..8957fce51a6f 100644
--- a/stand/libsa/nfs.c
+++ b/stand/libsa/nfs.c
@@ -133,14 +133,14 @@ static int	nfs_readdir(struct open_file *f, struct dirent *d);
 struct	nfs_iodesc nfs_root_node;
 
 struct fs_ops nfs_fsops = {
-	"nfs",
-	nfs_open,
-	nfs_close,
-	nfs_read,
-	null_write,
-	nfs_seek,
-	nfs_stat,
-	nfs_readdir
+	.fs_name = "nfs",
+	.fo_open = nfs_open,
+	.fo_close = nfs_close,
+	.fo_read = nfs_read,
+	.fo_write = null_write,
+	.fo_seek = nfs_seek,
+	.fo_stat = nfs_stat,
+	.fo_readdir = nfs_readdir,
 };
 
 static int nfs_read_size = NFSREAD_MIN_SIZE;