From 6147df48686c0aa45f02d6e8a467033db03c087b Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Wed, 15 May 2013 15:00:19 +0200 Subject: [PATCH] test/system/st_rados_list_objects.cc: reduce scope of 'ret' in run() Signed-off-by: Danny Al-Gaaf --- src/test/system/st_rados_list_objects.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/system/st_rados_list_objects.cc b/src/test/system/st_rados_list_objects.cc index 636a272b595d0..bb153affeb836 100644 --- a/src/test/system/st_rados_list_objects.cc +++ b/src/test/system/st_rados_list_objects.cc @@ -64,13 +64,13 @@ run() rados_pool_create(cl, "foo"); RETURN1_IF_NONZERO(rados_ioctx_create(cl, "foo", &io_ctx)); - int ret, saw = 0; + int saw = 0; const char *obj_name; rados_list_ctx_t h; printf("%s: listing objects.\n", get_id_str()); RETURN1_IF_NONZERO(rados_objects_list_open(io_ctx, &h)); while (true) { - ret = rados_objects_list_next(h, &obj_name, NULL); + int ret = rados_objects_list_next(h, &obj_name, NULL); if (ret == -ENOENT) { break; } -- 2.39.5