diff options
author | Warner Losh <imp@FreeBSD.org> | 2022-07-24 21:51:47 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2022-07-24 22:53:35 +0000 |
commit | b7625c2c2cf7e559acc08f7cbbb53f5cb3b8ab94 (patch) | |
tree | 1d9e781d91e3b1114b6a7d8286ffb6c14b1a91dd | |
parent | 9450d9c4e5f94421237a5f58f47afee8c065e60f (diff) | |
download | src-b7625c2c2cf7e559acc08f7cbbb53f5cb3b8ab94.tar.gz src-b7625c2c2cf7e559acc08f7cbbb53f5cb3b8ab94.zip |
stand: Use c99 structure initialization for gzipfs_fsops
Sponsored by: Netflix
-rw-r--r-- | stand/libsa/gzipfs.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/stand/libsa/gzipfs.c b/stand/libsa/gzipfs.c index 8154b0f95a9a..1486df039aac 100644 --- a/stand/libsa/gzipfs.c +++ b/stand/libsa/gzipfs.c @@ -52,14 +52,14 @@ static off_t zf_seek(struct open_file *f, off_t offset, int where); static int zf_stat(struct open_file *f, struct stat *sb); struct fs_ops gzipfs_fsops = { - "zip", - zf_open, - zf_close, - zf_read, - null_write, - zf_seek, - zf_stat, - null_readdir + .fs_name = "zip", + .fo_open = zf_open, + .fo_close = zf_close, + .fo_read = zf_read, + .fo_write = null_write, + .fo_seek = zf_seek, + .fo_stat = zf_stat, + .fo_readdir = null_readdir, }; static int |