diff options
author | Stefan Reinauer <reinauer@chromium.org> | 2012-10-23 15:56:16 -0700 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2012-11-12 03:26:08 +0100 |
commit | cb6fd30155f404eaaeed4252400d248059825f0d (patch) | |
tree | db24b9d13c18744b8b3f602245fbeed2a11e0760 /util/cbfstool/cbfstool.c | |
parent | 20848ee288a74a2320411b33fa19dce78133c890 (diff) |
cbfstool: Remove unused cmd_t
Change-Id: Ib1c05828258b9dc7107920ae6cb25bc92ffa86d1
Signed-off-by: Stefan Reinauer <reinauer@google.com>
Reviewed-on: http://review.coreboot.org/1795
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'util/cbfstool/cbfstool.c')
-rw-r--r-- | util/cbfstool/cbfstool.c | 31 |
1 files changed, 9 insertions, 22 deletions
diff --git a/util/cbfstool/cbfstool.c b/util/cbfstool/cbfstool.c index 223f70a34e..12c972ef10 100644 --- a/util/cbfstool/cbfstool.c +++ b/util/cbfstool/cbfstool.c @@ -25,20 +25,7 @@ #include "common.h" #include "cbfs.h" -typedef enum { - CMD_ADD, - CMD_ADD_PAYLOAD, - CMD_ADD_STAGE, - CMD_ADD_FLAT, - CMD_REMOVE, - CMD_CREATE, - CMD_LOCATE, - CMD_PRINT, - CMD_EXTRACT, -} cmd_t; - struct command { - cmd_t id; const char *name; int (*function) (int argc, char **argv); }; @@ -392,15 +379,15 @@ static int cbfs_extract(int argc, char **argv) } static const struct command commands[] = { - {CMD_ADD, "add", cbfs_add}, - {CMD_ADD_PAYLOAD, "add-payload", cbfs_add_payload}, - {CMD_ADD_STAGE, "add-stage", cbfs_add_stage}, - {CMD_ADD_FLAT, "add-flat-binary", cbfs_add_flat_binary}, - {CMD_REMOVE, "remove", cbfs_remove}, - {CMD_CREATE, "create", cbfs_create}, - {CMD_LOCATE, "locate", cbfs_locate}, - {CMD_PRINT, "print", cbfs_print}, - {CMD_EXTRACT, "extract", cbfs_extract}, + {"add", cbfs_add}, + {"add-payload", cbfs_add_payload}, + {"add-stage", cbfs_add_stage}, + {"add-flat-binary", cbfs_add_flat_binary}, + {"remove", cbfs_remove}, + {"create", cbfs_create}, + {"locate", cbfs_locate}, + {"print", cbfs_print}, + {"extract", cbfs_extract}, }; static void usage(void) |