]> git.droids-corp.org - dpdk.git/blobdiff - app/test/test_memory.c
tile: fix build
[dpdk.git] / app / test / test_memory.c
index 02ef3cfac0ec19b3260a2bd5fc9a11fd871524d8..921bdc88338721b745ef0ff96e981b03d2a29222 100644 (file)
@@ -55,7 +55,8 @@ static int
 test_memory(void)
 {
        uint64_t s;
-       unsigned i, j;
+       unsigned i;
+       size_t j;
        const struct rte_memseg *mem;
 
        /*
@@ -85,8 +86,4 @@ test_memory(void)
        return 0;
 }
 
-static struct test_command memory_cmd = {
-       .command = "memory_autotest",
-       .callback = test_memory,
-};
-REGISTER_TEST_COMMAND(memory_cmd);
+REGISTER_TEST_COMMAND(memory_autotest, test_memory);