git: f3295e763c06 - stable/13 - stand: Use c99 structure initialization for userboot's host_fsops
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 24 Jan 2023 22:11:23 UTC
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 = {