diff options
author | Kyle Evans <kevans@FreeBSD.org> | 2018-08-12 00:00:13 +0000 |
---|---|---|
committer | Kyle Evans <kevans@FreeBSD.org> | 2018-08-12 00:00:13 +0000 |
commit | e903601824a4f10f8eadd58ffcb01bce7e9c2bd2 (patch) | |
tree | ef413c84d52191e0a6ee18d7ff276148748eadbb | |
parent | 3f48dbd1cca5b4d2f5fee9a17a8834e428083b2d (diff) | |
download | src-test2-e903601824a4f10f8eadd58ffcb01bce7e9c2bd2.tar.gz src-test2-e903601824a4f10f8eadd58ffcb01bce7e9c2bd2.zip |
Notes
-rw-r--r-- | sbin/bectl/bectl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/bectl/bectl.c b/sbin/bectl/bectl.c index 61279b189f00..f4094b57ee58 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); } } |