[PATCH v2 07/20] fiptool: do not typedef structs
Sascha Hauer
s.hauer at pengutronix.de
Wed Feb 12 06:09:20 PST 2025
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
commands/fiptool.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/commands/fiptool.c b/commands/fiptool.c
index b917c62a97..eb7d9b5ac7 100644
--- a/commands/fiptool.c
+++ b/commands/fiptool.c
@@ -24,11 +24,11 @@
#include <fip.h>
#include <fiptool.h>
-typedef struct cmd {
+struct cmd {
char *name;
int (*handler)(struct fip_state *fip, int, char **);
void (*usage)(int);
-} cmd_t;
+};
static int write_image_to_file(const struct fip_image *image, const char *filename)
@@ -532,7 +532,7 @@ static __maybe_unused int remove_cmd(struct fip_state *fip, int argc, char *argv
}
/* Available subcommands. */
-static cmd_t cmds[] = {
+static struct cmd cmds[] = {
{ .name = "info", .handler = info_cmd, },
{ .name = "uuid", .handler = uuid_cmd, },
{ .name = "unpack", .handler = unpack_cmd, },
--
2.39.5
More information about the barebox
mailing list