From: Danny Al-Gaaf Date: Wed, 22 Oct 2014 08:57:43 +0000 (+0200) Subject: test_disk_bw.cc: reduce scope of variable X-Git-Tag: v0.88~22^2~22 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=94a0ec140f02468c6162d0516ac57af950f69299;p=ceph.git test_disk_bw.cc: reduce scope of variable Signed-off-by: Danny Al-Gaaf --- diff --git a/src/test/old/test_disk_bw.cc b/src/test/old/test_disk_bw.cc index 40d0df3fe8b3..63b2a5f7b1d2 100644 --- a/src/test/old/test_disk_bw.cc +++ b/src/test/old/test_disk_bw.cc @@ -19,7 +19,7 @@ using namespace std; int main(int argc, char **argv) { void *buf; - int fd, count, loop = 0, ret; + int fd, count, loop = 0; if (argc != 4) { fprintf(stderr, "Usage: %s device bsize count\n", argv[0]); @@ -41,7 +41,7 @@ int main(int argc, char **argv) utime_t start = ceph_clock_now(g_ceph_context); while (loop++ < count) { - ret = safe_write(fd, buf, bsize); + int ret = safe_write(fd, buf, bsize); if (ret) ceph_abort(); //if ((loop % 100) == 0)