From 5ce25ae3b5d8666d373f7d7e336546ce8508c213 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Tue, 11 Nov 2025 20:35:20 +0100 Subject: fixes --- src/fs/devfs/src/open.c | 2 +- src/fs/devfs/src/read.c | 2 +- src/fs/devfs/src/read_nb.c | 2 +- src/fs/devfs/src/write.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/fs/devfs') diff --git a/src/fs/devfs/src/open.c b/src/fs/devfs/src/open.c index 551061f..229ff49 100644 --- a/src/fs/devfs/src/open.c +++ b/src/fs/devfs/src/open.c @@ -49,7 +49,7 @@ int devfs_open(const struct fs_open *const o, const struct fs_mp *const mp, *o->fd = (const struct fs_fd) { .inode = *inode, - .mp = mp + .mp = *mp }; *r = (const struct fs_ret){.f = done, .args = op}; diff --git a/src/fs/devfs/src/read.c b/src/fs/devfs/src/read.c index e968eb2..d7214ff 100644 --- a/src/fs/devfs/src/read.c +++ b/src/fs/devfs/src/read.c @@ -58,7 +58,7 @@ int devfs_read(const struct fs_read *const fr, struct fs_ret *const r) { struct read *re = NULL; struct fs_fd *const fd = fr->fd; - const struct fs_mp *const mp = fd->mp; + const struct fs_mp *const mp = &fd->mp; const struct inode *const inode = fd->inode.memi; const struct devfs_ops *const o = devfs_ops(mp->prv, inode->name); diff --git a/src/fs/devfs/src/read_nb.c b/src/fs/devfs/src/read_nb.c index 2f30d5c..75b6c25 100644 --- a/src/fs/devfs/src/read_nb.c +++ b/src/fs/devfs/src/read_nb.c @@ -25,7 +25,7 @@ int devfs_read_nb(const struct fs_read *const fr) { struct fs_fd *const fd = fr->fd; - const struct fs_mp *const mp = fd->mp; + const struct fs_mp *const mp = &fd->mp; const struct inode *const inode = fd->inode.memi; const struct devfs_ops *const o = devfs_ops(mp->prv, inode->name); diff --git a/src/fs/devfs/src/write.c b/src/fs/devfs/src/write.c index 392666c..fbb0ac8 100644 --- a/src/fs/devfs/src/write.c +++ b/src/fs/devfs/src/write.c @@ -55,7 +55,7 @@ static enum state wait(void *const args) int devfs_write(const struct fs_write *const fw, struct fs_ret *const r) { struct fs_fd *const fd = fw->fd; - const struct fs_mp *const mp = fd->mp; + const struct fs_mp *const mp = &fd->mp; const struct inode *const inode = fd->inode.memi; const struct devfs_ops *const o = devfs_ops(mp->prv, inode->name); struct write *const w = malloc(sizeof *w); -- cgit v1.2.3