aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/vpi/vpi001
diff options
context:
space:
mode:
authorAlfred M. Szmidt <ams@gnu.org>2021-06-10 11:00:58 +0200
committerTristan Gingold <tgingold@free.fr>2021-06-13 06:44:02 +0200
commit534f7801b470c22fcf61909dd42a9fba920efe34 (patch)
treecfe0d27bf3df302e0091711198f664ed8bc16440 /testsuite/vpi/vpi001
parentfa1dd6eb882792d38f978a16cdfd8821e5a63f9c (diff)
downloadghdl-534f7801b470c22fcf61909dd42a9fba920efe34.tar.gz
ghdl-534f7801b470c22fcf61909dd42a9fba920efe34.tar.bz2
ghdl-534f7801b470c22fcf61909dd42a9fba920efe34.zip
testsuite/vpi: Don't use C99 declerations in loops.
Diffstat (limited to 'testsuite/vpi/vpi001')
-rw-r--r--testsuite/vpi/vpi001/vpi1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/testsuite/vpi/vpi001/vpi1.c b/testsuite/vpi/vpi001/vpi1.c
index c4943fde6..c266b5cd7 100644
--- a/testsuite/vpi/vpi001/vpi1.c
+++ b/testsuite/vpi/vpi001/vpi1.c
@@ -31,8 +31,9 @@ vpi_proc (void)
//"myentity.genstring", -- Not supported
//"myentity.conststring" -- 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)