summaryrefslogtreecommitdiff
path: root/tests/Naming_Test.cpp
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-02-05 15:35:26 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-02-05 15:35:26 +0000
commit1932d40c7f045d08f7a439740e946dc570c0482f (patch)
tree4f72a98532e1642bc3ae693165e98c539a415c70 /tests/Naming_Test.cpp
parent67c4a18fd73d9e630441ca9a46bec30986865ca1 (diff)
downloadATCD-1932d40c7f045d08f7a439740e946dc570c0482f.tar.gz
moved declaration of "i" out of for loop because it is used after the loop
Diffstat (limited to 'tests/Naming_Test.cpp')
-rw-r--r--tests/Naming_Test.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/Naming_Test.cpp b/tests/Naming_Test.cpp
index 153f439acbc..47bfc830db2 100644
--- a/tests/Naming_Test.cpp
+++ b/tests/Naming_Test.cpp
@@ -30,7 +30,9 @@ static char type[BUFSIZ];
static void
randomize (int array[], int size)
{
- for (int i = 0; i < size; i++)
+ int i;
+
+ for (i = 0; i < size; i++)
array [i] = i;
ACE_OS::srand (ACE_OS::time (0L));