Date: Sun, 24 Jul 2022 22:55:45 GMT From: Warner Losh <imp@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: b3f43ee0317a - main - stand: Use c99 structure initialization for userboot's host_fsops Message-ID: <202207242255.26OMtjoA004625@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=b3f43ee0317ad241fd35cd8a0e087fd2b158ca1f commit b3f43ee0317ad241fd35cd8a0e087fd2b158ca1f Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2022-07-24 21:51:50 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2022-07-24 22:53:35 +0000 stand: Use c99 structure initialization for userboot's host_fsops Sponsored by: Netflix --- 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?202207242255.26OMtjoA004625>