diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-08 02:20:13 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-08 02:20:13 +0000 |
| commit | c1bfe6a4387f6a699b4665e5266caf888e0e0dcf (patch) | |
| tree | 75f79322cbdc0aac1cc33c2c9ab0b64972b98e82 /util/nvmutil/nvmutil.c | |
| parent | bf30cdd021d645ca58b61354c219db4dcc6654e9 (diff) | |
util/nvmutil: rename command.args to argc
that way, it makes more sense sementantically
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/nvmutil/nvmutil.c')
| -rw-r--r-- | util/nvmutil/nvmutil.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index c6065d79..914525f2 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -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; } |
