From: Danny Al-Gaaf Date: Wed, 15 May 2013 12:20:58 +0000 (+0200) Subject: rgw/rgw_admin.cc: reduce scope of 'ret' X-Git-Tag: v0.64~119^2~10 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9d6e086605d788eae4de4f435360f2010cafe1b6;p=ceph.git rgw/rgw_admin.cc: reduce scope of 'ret' Signed-off-by: Danny Al-Gaaf --- diff --git a/src/rgw/rgw_admin.cc b/src/rgw/rgw_admin.cc index fff32ca435db..c505cc207640 100644 --- a/src/rgw/rgw_admin.cc +++ b/src/rgw/rgw_admin.cc @@ -1151,7 +1151,6 @@ next: } if (opt_cmd == OPT_GC_LIST) { - int ret; int index = 0; string marker; bool truncated; @@ -1159,7 +1158,7 @@ next: do { list result; - ret = store->list_gc_objs(&index, marker, 1000, result, &truncated); + int ret = store->list_gc_objs(&index, marker, 1000, result, &truncated); if (ret < 0) { cerr << "ERROR: failed to list objs: " << cpp_strerror(-ret) << std::endl; return 1;