From e903601824a4f10f8eadd58ffcb01bce7e9c2bd2 Mon Sep 17 00:00:00 2001 From: Kyle Evans Date: Sun, 12 Aug 2018 00:00:13 +0000 Subject: [PATCH] bectl(8): Rename "index" variable, which shadows a global in some lands --- sbin/bectl/bectl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/bectl/bectl.c b/sbin/bectl/bectl.c index 61279b189f0..f4094b57ee5 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); } }