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/aio | |
| parent | f7ad4d9216b488f76ed4b3c8e423cd926e134b9d (diff) | |
| download | wnix-5ce25ae3b5d8666d373f7d7e336546ce8508c213.tar.gz | |
fixes
Diffstat (limited to 'src/aio')
| -rw-r--r-- | src/aio/src/close.c | 4 | ||||
| -rw-r--r-- | src/aio/src/read.c | 2 | ||||
| -rw-r--r-- | src/aio/src/read_nb.c | 2 | ||||
| -rw-r--r-- | src/aio/src/write.c | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/src/aio/src/close.c b/src/aio/src/close.c index 68c5dd7..c2c3673 100644 --- a/src/aio/src/close.c +++ b/src/aio/src/close.c @@ -22,8 +22,8 @@ int aio_close(struct fs_fd *const fd) { - if (fd->mp && fd->mp->fs) - return fd->mp->fs->close(fd); + if (fd->mp.fs) + return fd->mp.fs->close(fd); return -1; } diff --git a/src/aio/src/read.c b/src/aio/src/read.c index f57c3b0..f15ee8d 100644 --- a/src/aio/src/read.c +++ b/src/aio/src/read.c @@ -52,7 +52,7 @@ struct aio *aio_read(const struct fs_read *const fr, struct aio *aio = NULL; struct read *const r = malloc(sizeof *r); struct fs_fd *const fd = fr->fd; - const struct fs *const fs = fd->mp->fs; + const struct fs *const fs = fd->mp.fs; if (!r || !(aio = malloc(sizeof *aio))) goto failure; diff --git a/src/aio/src/read_nb.c b/src/aio/src/read_nb.c index 133a75a..a86ad89 100644 --- a/src/aio/src/read_nb.c +++ b/src/aio/src/read_nb.c @@ -23,7 +23,7 @@ int aio_read_nb(const struct fs_read *const fr) { const struct fs_fd *const fd = fr->fd; - const struct fs *const fs = fd->mp->fs; + const struct fs *const fs = fd->mp.fs; return fs->read_nb(fr); } diff --git a/src/aio/src/write.c b/src/aio/src/write.c index 75f167f..562a772 100644 --- a/src/aio/src/write.c +++ b/src/aio/src/write.c @@ -52,7 +52,7 @@ struct aio *aio_write(const struct fs_write *const fw, struct aio *aio = NULL; struct write *const w = malloc(sizeof *w); struct fs_fd *const fd = fw->fd; - const struct fs *const fs = fd->mp->fs; + const struct fs *const fs = fd->mp.fs; if (!w || !(aio = malloc(sizeof *aio))) goto failure; |
