diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-03 15:04:39 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-03 15:04:39 +0000 |
| commit | a8a9ce32f18b3d063504cec7474bbb99dcf4cf36 (patch) | |
| tree | 458f9825e3ff24d3ef02f85018f20d6ec30e5212 | |
| parent | 5517cf923b0b9d3b519c314f3720bf876d49e0f6 (diff) | |
util/nvmutil: no designated initialisers in op
Signed-off-by: Leah Rowe <leah@libreboot.org>
| -rw-r--r-- | util/nvmutil/nvmutil.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index b24085dc..9020cce5 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -82,18 +82,12 @@ typedef struct op { int args; } op_t; op_t op[] = { - { .str = "dump", - .cmd = cmd_dump, .args = 3 }, - { .str = "setmac", - .cmd = cmd_setmac, .args = 3 }, - { .str = "swap", - .cmd = cmd_swap, .args = 3 }, - { .str = "copy", - .cmd = cmd_copy, .args = 4 }, - { .str = "brick", - .cmd = cmd_brick, .args = 4 }, - { .str = "setchecksum", - .cmd = cmd_setchecksum, .args = 4 }, + { "dump", cmd_dump, 3 }, + { "setmac", cmd_setmac, 3 }, + { "swap", cmd_swap, 3 }, + { "copy", cmd_copy, 4 }, + { "brick", cmd_brick, 4 }, + { "setchecksum", cmd_setchecksum, 4 }, }; void (*cmd)(void) = NULL; |
