From: Danny Al-Gaaf Date: Wed, 15 May 2013 12:59:34 +0000 (+0200) Subject: test/system/st_rados_create_pool.cc_ reduce scope of 'ret' in run() X-Git-Tag: v0.64~119^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=56f8c36474ccc8f5eb86be2dba2ba2ab6ce3272d;p=ceph.git test/system/st_rados_create_pool.cc_ reduce scope of 'ret' in run() Signed-off-by: Danny Al-Gaaf --- 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;