From 3eddb4c1f277e30fbbb86f2f9f30a247f87d6c73 Mon Sep 17 00:00:00 2001
From: Alberto Bertogli <albertito@blitiri.com.ar>
Date: Mon, 13 Jul 2009 02:45:34 -0300
Subject: [PATCH 31/74] libjio: Fix unix wrappers internal types

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
---
 libjio/unix.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/libjio/unix.c b/libjio/unix.c
index b41dd4f..f1af948 100644
--- a/libjio/unix.c
+++ b/libjio/unix.c
@@ -21,7 +21,7 @@
 /* read() wrapper */
 ssize_t jread(struct jfs *fs, void *buf, size_t count)
 {
-	int rv;
+	ssize_t rv;
 	off_t pos;
 
 	pthread_mutex_lock(&(fs->lock));
@@ -45,7 +45,7 @@ ssize_t jread(struct jfs *fs, void *buf, size_t count)
 /* pread() wrapper */
 ssize_t jpread(struct jfs *fs, void *buf, size_t count, off_t offset)
 {
-	int rv;
+	ssize_t rv;
 
 	plockf(fs->fd, F_LOCKR, offset, count);
 	rv = spread(fs->fd, buf, count, offset);
@@ -82,7 +82,7 @@ ssize_t jreadv(struct jfs *fs, const struct iovec *vector, int count)
 /* write() wrapper */
 ssize_t jwrite(struct jfs *fs, const void *buf, size_t count)
 {
-	int rv;
+	ssize_t rv;
 	off_t pos;
 	struct jtrans *ts;
 
@@ -120,7 +120,7 @@ exit:
 /* pwrite() wrapper */
 ssize_t jpwrite(struct jfs *fs, const void *buf, size_t count, off_t offset)
 {
-	int rv;
+	ssize_t rv;
 	struct jtrans *ts;
 
 	ts = jtrans_new(fs, 0);
@@ -142,8 +142,8 @@ exit:
 /* writev() wrapper */
 ssize_t jwritev(struct jfs *fs, const struct iovec *vector, int count)
 {
-	int rv, i;
-	size_t sum;
+	int i;
+	size_t sum, rv;
 	off_t ipos, t;
 	struct jtrans *ts;
 
-- 
1.6.2.2.646.gb214

