summaryrefslogtreecommitdiffstats
path: root/src/rbd.cc
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2011-03-15 21:16:41 +0100
committerSage Weil <sage@newdream.net>2011-03-15 21:16:41 +0100
commitd93c1184234bd2844b257dabac48e8950f1375b4 (patch)
treea0619301574f18a5ef7bf3d34f8db2fb99b8a999 /src/rbd.cc
parentrbd: int -> int64_t on do_export (diff)
downloadceph-d93c1184234bd2844b257dabac48e8950f1375b4.tar.xz
ceph-d93c1184234bd2844b257dabac48e8950f1375b4.zip
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 <sage.weil@dreamhost.com>
Diffstat (limited to 'src/rbd.cc')
-rw-r--r--src/rbd.cc2
1 files changed, 1 insertions, 1 deletions
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 */