diff options
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; |
