refactor: reduce number of explicit char casts (#16077)

* refactor: reduce number of explicit char casts
This commit is contained in:
dundargoc
2021-11-16 20:27:59 +01:00
committed by GitHub
parent 99211b008c
commit eba317d7a9
27 changed files with 151 additions and 167 deletions

View File

@@ -601,7 +601,7 @@ static int cs_cnt_matches(size_t idx)
if ((stok = strtok(NULL, (const char *)" ")) == NULL) {
continue;
}
if (strncmp((const char *)stok, "lines", 5)) {
if (strncmp(stok, "lines", 5)) {
continue;
}
@@ -1214,8 +1214,8 @@ static cscmd_T *cs_lookup_cmd(exarg_T *eap)
}
len = strlen(stok);
for (cmdp = cs_cmds; cmdp->name != NULL; ++cmdp) {
if (strncmp((const char *)(stok), cmdp->name, len) == 0) {
for (cmdp = cs_cmds; cmdp->name != NULL; cmdp++) {
if (strncmp(stok, cmdp->name, len) == 0) {
return cmdp;
}
}