test: fix build of external memory test
authorDan Gora <dg@adax.com>
Wed, 17 Oct 2018 00:22:44 +0000 (21:22 -0300)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 23 Oct 2018 09:36:00 +0000 (11:36 +0200)
commit51bc78a5a765848b33a09889f596545f9c00c6d7
tree92bd6338d90c5c1ba2276cc5f8880417bcdc65b2
parent4dc3db031d6bf556b43adca14841d08431d2e1bf
test: fix build of external memory test

There was a compilation error in test_external_mem.c:

  CC test_external_mem.o
test_external_mem.c: In function ‘test_external_mem’:
test_external_mem.c:375:2: error: ‘for’ loop initial declarations are
                           only allowed in C99 mode

  for (int i = 0; i < n_pages; i++) {
  ^
test_external_mem.c:375:2: note: use option -std=c99 or -std=gnu99 to
                           compile your code

Fixes: b270daa43b3d ("test: support external memory")

Signed-off-by: Dan Gora <dg@adax.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
test/test/test_external_mem.c