Merge branch '2020-05-18-reduce-size-of-common.h'
[oweals/u-boot.git] / test / command_ut.c
index f76d52569da70a64c1445ef41203fca158d635a3..9837d10eb5c95d8cb689d819367d2cb36e205f96 100644 (file)
@@ -1,18 +1,21 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright (c) 2012, The Chromium Authors
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #define DEBUG
 
 #include <common.h>
+#include <command.h>
+#include <env.h>
+#include <log.h>
 
 static const char test_cmd[] = "setenv list 1\n setenv list ${list}2; "
                "setenv list ${list}3\0"
                "setenv list ${list}4";
 
-static int do_ut_cmd(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_ut_cmd(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[])
 {
        printf("%s: Testing commands\n", __func__);
        run_command("env default -f -a", 0);