From 56f8c36474ccc8f5eb86be2dba2ba2ab6ce3272d Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Wed, 15 May 2013 14:59:34 +0200 Subject: [PATCH] test/system/st_rados_create_pool.cc_ reduce scope of 'ret' in run() Signed-off-by: Danny Al-Gaaf --- src/test/system/st_rados_create_pool.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/test/system/st_rados_create_pool.cc b/src/test/system/st_rados_create_pool.cc index 4a46b0c04a82..dcae15375afa 100644 --- a/src/test/system/st_rados_create_pool.cc +++ b/src/test/system/st_rados_create_pool.cc @@ -79,7 +79,6 @@ run() } RETURN1_IF_NONZERO(rados_connect(cl)); - int ret; printf("%s: creating pool %s\n", get_id_str(), m_pool_name.c_str()); rados_pool_create(cl, m_pool_name.c_str()); @@ -90,7 +89,7 @@ run() char oid[128]; snprintf(oid, sizeof(oid), "%d%s", i, m_suffix.c_str()); std::string buf(get_random_buf(256)); - ret = rados_write(io_ctx, oid, buf.c_str(), buf.size(), 0); + int ret = rados_write(io_ctx, oid, buf.c_str(), buf.size(), 0); if (ret < static_cast(buf.size())) { printf("%s: rados_write error %d\n", get_id_str(), ret); return ret; -- 2.47.3