app/test: rework command registration
[dpdk.git] / app / test / test_malloc.c
index a04a751..0673d85 100644 (file)
@@ -959,8 +959,4 @@ test_malloc(void)
        return 0;
 }
 
-static struct test_command malloc_cmd = {
-       .command = "malloc_autotest",
-       .callback = test_malloc,
-};
-REGISTER_TEST_COMMAND(malloc_cmd);
+REGISTER_TEST_COMMAND(malloc_autotest, test_malloc);