util/nvmutil: rename command.args to argc

that way, it makes more sense sementantically

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-08 02:20:13 +00:00
parent bf30cdd021
commit c1bfe6a438

View File

@@ -174,7 +174,7 @@ struct commands {
against cmd index, to verify correct enum order */
const char *str;
void (*run)(void);
int args;
int argc;
uint8_t invert;
};
@@ -312,7 +312,7 @@ set_cmd(int argc, char *argv[])
for (cmd = 0; cmd < (ssize_t)items(command); cmd++) {
if (strcmp(argv[2], command[cmd].str) != 0)
continue;
if (argc >= command[cmd].args) {
if (argc >= command[cmd].argc) {
return;
}