Date: Tue, 24 Jan 2023 22:11:23 GMT From: Warner Losh <imp@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: f3295e763c06 - stable/13 - stand: Use c99 structure initialization for userboot's host_fsops Message-ID: <202301242211.30OMBN0M083864@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=f3295e763c06aaca27e0fa78d1fc331285f7f264 commit f3295e763c06aaca27e0fa78d1fc331285f7f264 Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2022-07-24 21:51:50 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2023-01-24 21:49:27 +0000 stand: Use c99 structure initialization for userboot's host_fsops Sponsored by: Netflix (cherry picked from commit b3f43ee0317ad241fd35cd8a0e087fd2b158ca1f) --- stand/userboot/userboot/host.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/stand/userboot/userboot/host.c b/stand/userboot/userboot/host.c index 20952983e0d1..74727fd8ce3b 100644 --- a/stand/userboot/userboot/host.c +++ b/stand/userboot/userboot/host.c @@ -155,14 +155,14 @@ host_dev_strategy(void *devdata, int rw, daddr_t dblk, size_t size, } struct fs_ops host_fsops = { - "host", - host_open, - host_close, - host_read, - null_write, - host_seek, - host_stat, - host_readdir + .fs_name = "host", + .fo_open = host_open, + .fo_close = host_close, + .fo_read = host_read, + .fo_write = null_write, + .fo_seek = host_seek, + .fo_stat = host_stat, + .fo_readdir = host_readdir, }; struct devsw host_dev = {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202301242211.30OMBN0M083864>