mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-20 15:03:44 +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 */
|
against cmd index, to verify correct enum order */
|
||||||
const char *str;
|
const char *str;
|
||||||
void (*run)(void);
|
void (*run)(void);
|
||||||
int args;
|
int argc;
|
||||||
uint8_t invert;
|
uint8_t invert;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -312,7 +312,7 @@ set_cmd(int argc, char *argv[])
|
|||||||
for (cmd = 0; cmd < (ssize_t)items(command); cmd++) {
|
for (cmd = 0; cmd < (ssize_t)items(command); cmd++) {
|
||||||
if (strcmp(argv[2], command[cmd].str) != 0)
|
if (strcmp(argv[2], command[cmd].str) != 0)
|
||||||
continue;
|
continue;
|
||||||
if (argc >= command[cmd].args) {
|
if (argc >= command[cmd].argc) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user