diff options
author | Simon Glass <sjg@chromium.org> | 2020-05-10 11:40:03 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-05-18 18:36:55 -0400 |
commit | 09140113108541b95d340f3c7b6ee597d31ccc73 (patch) | |
tree | 4b4241b799bbbb2eeef4164392442b193af1703f /cmd/test.c | |
parent | 691d719db7183dfb1d1360efed4c5e9f6899095f (diff) |
command: Remove the cmd_tbl_t typedef
We should not use typedefs in U-Boot. They cannot be used as forward
declarations which means that header files must include the full header to
access them.
Drop the typedef and rename the struct to remove the _s suffix which is
now not useful.
This requires quite a few header-file additions.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'cmd/test.c')
-rw-r--r-- | cmd/test.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/cmd/test.c b/cmd/test.c index 258bfd8806..dd49d0e00a 100644 --- a/cmd/test.c +++ b/cmd/test.c @@ -50,7 +50,8 @@ const struct { {0, "-e", OP_FILE_EXISTS, 4}, }; -static int do_test(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) +static int do_test(struct cmd_tbl *cmdtp, int flag, int argc, + char *const argv[]) { char * const *ap; int i, op, left, adv, expr, last_expr, last_unop, last_binop; @@ -190,7 +191,8 @@ U_BOOT_CMD( "[args..]" ); -static int do_false(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) +static int do_false(struct cmd_tbl *cmdtp, int flag, int argc, + char *const argv[]) { return 1; } @@ -201,7 +203,8 @@ U_BOOT_CMD( NULL ); -static int do_true(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) +static int do_true(struct cmd_tbl *cmdtp, int flag, int argc, + char *const argv[]) { return 0; } |