summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sbin/bectl/bectl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/bectl/bectl.c b/sbin/bectl/bectl.c
index 61279b189f000..f4094b57ee583 100644
--- a/sbin/bectl/bectl.c
+++ b/sbin/bectl/bectl.c
@@ -116,14 +116,14 @@ static struct command_map_entry command_map[] =
};
static int
-get_cmd_index(const char *cmd, int *index)
+get_cmd_index(const char *cmd, int *idx)
{
int map_size;
map_size = nitems(command_map);
for (int i = 0; i < map_size; ++i) {
if (strcmp(cmd, command_map[i].command) == 0) {
- *index = i;
+ *idx = i;
return (0);
}
}