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