mirror of
https://github.com/tbamud/tbamud.git
synced 2025-12-23 18:50:13 +01:00
Cleaned up numerous warnings found by adding -Wextra -Wcast-qual -Wshadow -Wno-unused flags. --Rumble
This commit is contained in:
parent
e8c87e82e4
commit
4f1403558a
28 changed files with 186 additions and 187 deletions
|
|
@ -367,7 +367,7 @@ ACMD(do_helpcheck)
|
|||
|
||||
for (i = 1; *(complete_cmd_info[i].command) != '\n'; i++) {
|
||||
if (complete_cmd_info[i].command_pointer != do_action && complete_cmd_info[i].minimum_level >= 0) {
|
||||
if (search_help((char *)(complete_cmd_info[i].command), LVL_IMPL) == NOWHERE) {
|
||||
if (search_help(complete_cmd_info[i].command, LVL_IMPL) == NOWHERE) {
|
||||
nlen = snprintf(buf + len, sizeof(buf) - len, "%-20.20s%s", complete_cmd_info[i].command,
|
||||
(++count % 3 ? "" : "\r\n"));
|
||||
if (len + nlen >= sizeof(buf))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue