git: b7625c2c2cf7 - main - stand: Use c99 structure initialization for gzipfs_fsops
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 24 Jul 2022 22:55:43 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=b7625c2c2cf7e559acc08f7cbbb53f5cb3b8ab94
commit b7625c2c2cf7e559acc08f7cbbb53f5cb3b8ab94
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-07-24 21:51:47 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-07-24 22:53:35 +0000
stand: Use c99 structure initialization for gzipfs_fsops
Sponsored by: Netflix
---
stand/libsa/gzipfs.c | 16 ++++++++--------
1 file 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