git » libjio » commit 1cf581b

Make jlseek properly return the offset.

author Alberto Bertogli
2004-09-08 16:29:08 UTC
committer Alberto Bertogli
2007-07-15 13:23:10 UTC
parent 9d74372e09e68224930902d2fde4f3dc6e155f2f

Make jlseek properly return the offset.

Make jlseek properly return the offset.

unix.c +1 -1

diff --git a/unix.c b/unix.c
index 6aaf4f6..2ed10ba 100644
--- a/unix.c
+++ b/unix.c
@@ -172,7 +172,7 @@ int jtruncate(struct jfs *fs, off_t length)
 /* lseek wrapper */
 off_t jlseek(struct jfs *fs, off_t offset, int whence)
 {
-	int rv;
+	off_t rv;
 
 	pthread_mutex_lock(&(fs->lock));
 	rv = lseek(fs->fd, offset, whence);