author | Alberto Bertogli
<albertito@gmail.com> 2004-09-26 18:35:21 UTC |
committer | Alberto Bertogli
<albertito@gmail.com> 2007-07-15 13:25:37 UTC |
parent | 42032c8453e7a0f8786b4b3da1d2b2da9c88814d |
libjio.h | +1 | -1 |
unix.c | +1 | -1 |
diff --git a/libjio.h b/libjio.h index 0333a6e..816f3ee 100644 --- a/libjio.h +++ b/libjio.h @@ -120,7 +120,7 @@ int jfsck_cleanup(const char *name); /* UNIX API wrappers */ ssize_t jread(struct jfs *fs, void *buf, size_t count); ssize_t jpread(struct jfs *fs, void *buf, size_t count, off_t offset); -ssize_t jreadv(struct jfs *fs, struct iovec *vector, int count); +ssize_t jreadv(struct jfs *fs, const struct iovec *vector, int count); ssize_t jwrite(struct jfs *fs, const void *buf, size_t count); ssize_t jpwrite(struct jfs *fs, const void *buf, size_t count, off_t offset); ssize_t jwritev(struct jfs *fs, const struct iovec *vector, int count); diff --git a/unix.c b/unix.c index 2ed10ba..7e235b1 100644 --- a/unix.c +++ b/unix.c @@ -54,7 +54,7 @@ ssize_t jpread(struct jfs *fs, void *buf, size_t count, off_t offset) } /* readv wrapper */ -ssize_t jreadv(struct jfs *fs, struct iovec *vector, int count) +ssize_t jreadv(struct jfs *fs, const struct iovec *vector, int count) { int rv, i; size_t sum;