diff options
| author | Xavier Del Campo Romero <xavi92@disroot.org> | 2025-11-11 20:35:20 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi92@disroot.org> | 2025-11-11 20:55:58 +0100 |
| commit | 5ce25ae3b5d8666d373f7d7e336546ce8508c213 (patch) | |
| tree | 4aacb570241c1005590a47ac49adb4b75a8ffd8d /src/fs/devfs | |
| parent | f7ad4d9216b488f76ed4b3c8e423cd926e134b9d (diff) | |
fixes
Diffstat (limited to 'src/fs/devfs')
| -rw-r--r-- | src/fs/devfs/src/open.c | 2 | ||||
| -rw-r--r-- | src/fs/devfs/src/read.c | 2 | ||||
| -rw-r--r-- | src/fs/devfs/src/read_nb.c | 2 | ||||
| -rw-r--r-- | src/fs/devfs/src/write.c | 2 |
4 files changed, 4 insertions, 4 deletions
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); |
