
The vector argument to jreadv() must be const.

---

 cur-root/libjio.h |    2 +-
 cur-root/unix.c   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff -puN unix.c~jreadv_const unix.c
--- cur/unix.c~jreadv_const	2004-09-26 15:34:11.012735592 -0300
+++ cur-root/unix.c	2004-09-26 15:34:22.847936368 -0300
@@ -54,7 +54,7 @@ ssize_t jpread(struct jfs *fs, void *buf
 }
 
 /* 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;
diff -puN libjio.h~jreadv_const libjio.h
--- cur/libjio.h~jreadv_const	2004-09-26 15:34:29.313953384 -0300
+++ cur-root/libjio.h	2004-09-26 15:34:38.143611072 -0300
@@ -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);
_
