stand: Use c99 structure initialization for pkgfs_fsops

Sponsored by:		Netflix
This commit is contained in:
Warner Losh 2022-07-24 15:51:42 -06:00
parent 90a7e556a4
commit e7d045aa2b

View File

@ -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