From b3119c8b4d9951c7778436d6a88386264315c1ae Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Tue, 3 Mar 2026 16:06:02 +0000 Subject: 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 --- util/nvmutil/nvmutil.c | 14 +++++++------- 1 file 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); } } -- cgit v1.2.1