[PATCH v2 07/20] fiptool: do not typedef structs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>
---
 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





[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux