git: 8e4354922510 - stable/13 - stand: Use c99 structure initialization for pkgfs_fsops
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 24 Jan 2023 22:11:19 UTC
The branch stable/13 has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=8e43549225107ca26c5258e230b0d13de9bac330 commit 8e43549225107ca26c5258e230b0d13de9bac330 Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2022-07-24 21:51:42 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2023-01-24 21:49:26 +0000 stand: Use c99 structure initialization for pkgfs_fsops Sponsored by: Netflix (cherry picked from commit e7d045aa2b270d2026ad6c15639673ea6d01c7b4) --- stand/libsa/pkgfs.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/stand/libsa/pkgfs.c b/stand/libsa/pkgfs.c index ffa16309ee6a..9d98e48d9a84 100644 --- a/stand/libsa/pkgfs.c +++ b/stand/libsa/pkgfs.c @@ -49,14 +49,14 @@ static int pkg_readdir(struct open_file *, struct dirent *); static off_t pkg_atol(const char *, unsigned); struct fs_ops pkgfs_fsops = { - "pkg", - pkg_open, - pkg_close, - pkg_read, - null_write, - pkg_seek, - pkg_stat, - pkg_readdir + .fs_name = "pkg", + .fo_open = pkg_open, + .fo_close = pkg_close, + .fo_read = pkg_read, + .fo_write = null_write, + .fo_seek = pkg_seek, + .fo_stat = pkg_stat, + .fo_readdir = pkg_readdir, }; #define PKG_BUFSIZE 512