summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-03 16:06:02 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-03 16:06:02 +0000
commitb3119c8b4d9951c7778436d6a88386264315c1ae (patch)
tree76d9fac83aad9824b686c83ee81b91e54dee6728 /util
parentf03570b67463f12fe7f1b46026d9045ea809b635 (diff)
util/nvmutil: rename op_t to op
and op to ops typedefs not part of any base system e.g. openbsd base system, or e.g. the libc, should not have _t in them. this is a stylistic change, and does not alter any actual program behaviour. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util')
-rw-r--r--util/nvmutil/nvmutil.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c
index 6f83f9d1..4f541a72 100644
--- a/util/nvmutil/nvmutil.c
+++ b/util/nvmutil/nvmutil.c
@@ -81,8 +81,8 @@ typedef struct op {
const char *str;
void (*cmd)(void);
int args;
-} op_t;
-static const op_t op[] = {
+} op;
+static const op ops[] = {
{ "dump", cmd_dump, 3 },
{ "setmac", cmd_setmac, 3 },
{ "swap", cmd_swap, 3 },
@@ -140,15 +140,15 @@ set_cmd(int argc, char *argv[])
return;
}
- for (i = 0; (i < items(op)) && (cmd == NULL); i++) {
- if (strcmp(COMMAND, op[i].str) != 0)
+ for (i = 0; (i < items(ops)) && (cmd == NULL); i++) {
+ if (strcmp(COMMAND, ops[i].str) != 0)
continue;
- if (argc >= op[i].args) {
- cmd = op[i].cmd;
+ if (argc >= ops[i].args) {
+ cmd = ops[i].cmd;
break;
}
err(set_err(EINVAL), "Too few args on command '%s'",
- op[i].str);
+ ops[i].str);
}
}