aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/vpi/vpi002/vpi1.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/vpi/vpi002/vpi1.c')
-rw-r--r--testsuite/vpi/vpi002/vpi1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/testsuite/vpi/vpi002/vpi1.c b/testsuite/vpi/vpi002/vpi1.c
index f992e8246..d6f1b42fb 100644
--- a/testsuite/vpi/vpi002/vpi1.c
+++ b/testsuite/vpi/vpi002/vpi1.c
@@ -46,8 +46,9 @@ vpi_proc (void)
//"myentity.sigarray5[0]", // Not supported
//"myentity.portarray5[0]" // Not supported
};
+ int name_index;
- for (int name_index=0; name_index<N_NAMES; name_index+=1) {
+ for (name_index=0; name_index<N_NAMES; name_index+=1) {
printf ("Trying to find name %s\n", names[name_index]);
net = vpi_handle_by_name (names[name_index], NULL);
if (net == NULL)