git: 43599349cdc4 - stable/13 - stand: Use c99 structure initialization for gzipfs_fsops
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 24 Jan 2023 22:11:22 UTC
The branch stable/13 has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=43599349cdc468c590c0426048d017e734a7f083 commit 43599349cdc468c590c0426048d017e734a7f083 Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2022-07-24 21:51:47 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2023-01-24 21:49:26 +0000 stand: Use c99 structure initialization for gzipfs_fsops Sponsored by: Netflix (cherry picked from commit b7625c2c2cf7e559acc08f7cbbb53f5cb3b8ab94) --- 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