mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-03-25 13:29:03 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user