From d93c1184234bd2844b257dabac48e8950f1375b4 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 15 Mar 2011 13:16:41 -0700 Subject: librbd: ssize_t return values for read, write size_t is 32bits on 64bit archs. Use ssize_t (long) for return values. Signed-off-by: Sage Weil --- src/rbd.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rbd.cc') diff --git a/src/rbd.cc b/src/rbd.cc index 0580759a5bc..89a06064415 100644 --- a/src/rbd.cc +++ b/src/rbd.cc @@ -200,7 +200,7 @@ static int do_rollback_snap(librbd::Image& image, const char *snapname) static int export_read_cb(uint64_t ofs, size_t len, const char *buf, void *arg) { - int ret; + ssize_t ret; int fd = *(int *)arg; if (!buf) /* a hole */ -- cgit v1.2.3