Fixes 32-bit build.
Signed-off-by: Eric Lee <eric.lee@hgst.com>
}
TEST(LibRGW, GET_OBJECT) {
- uint64_t nread;
+ size_t nread;
off_t offset = 0;
struct iovec *iovs = zp_set1.get_iovs();
for (int ix : {2 , 3}) {
if (do_get) {
char sbuf[512];
memset(sbuf, 0, 512);
- uint64_t nread;
+ size_t nread;
int ret = rgw_read(fs, object_fh, 0 /* off */, 512 /* len */, &nread, sbuf,
RGW_READ_FLAG_NONE);
ASSERT_EQ(ret, 0);
if (do_dirs1) {
int rc;
char buf[256];
- uint64_t nread;
+ size_t nread;
for (auto& dirs_rec : dirs_vec) {
obj_rec& dir = get<0>(dirs_rec);
if (verbose) {
uint64_t offset = 0;
uint64_t length = bufsz;
for (int ix = 0; ix < 6; ++ix) {
- uint64_t nread = 0;
+ size_t nread = 0;
memset(buffer, 0, length); // XXX
rc = rgw_read(fs, fobj.fh, offset, length, &nread, buffer,
RGW_READ_FLAG_NONE);
for (int ix = 0; ix < 6; ++ix) {
ASSERT_TRUE(ifs.good());
ifs.read(buffer, bufsz);
- uint64_t nwritten = 0;
+ size_t nwritten = 0;
string str;
str.assign(buffer, 4);
if (verbose) {