app/test: rework command registration
[dpdk.git] / app / test / test_byteorder.c
index a088489..8ae3114 100644 (file)
@@ -92,8 +92,4 @@ test_byteorder(void)
        return 0;
 }
 
-static struct test_command byteorder_cmd = {
-       .command = "byteorder_autotest",
-       .callback = test_byteorder,
-};
-REGISTER_TEST_COMMAND(byteorder_cmd);
+REGISTER_TEST_COMMAND(byteorder_autotest, test_byteorder);