diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2021-11-16 20:27:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-16 20:27:59 +0100 |
commit | eba317d7a907a76e6e265c0fe0b97a87f17cf943 (patch) | |
tree | 21edca825d0de28a4024c969e26ecfe75f6dc298 /src/nvim/if_cscope.c | |
parent | 99211b008c10561560e84eabfaa22e1577ac179a (diff) | |
download | rneovim-eba317d7a907a76e6e265c0fe0b97a87f17cf943.tar.gz rneovim-eba317d7a907a76e6e265c0fe0b97a87f17cf943.tar.bz2 rneovim-eba317d7a907a76e6e265c0fe0b97a87f17cf943.zip |
refactor: reduce number of explicit char casts (#16077)
* refactor: reduce number of explicit char casts
Diffstat (limited to 'src/nvim/if_cscope.c')
-rw-r--r-- | src/nvim/if_cscope.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/if_cscope.c b/src/nvim/if_cscope.c index 5b5f056164..2c44ce380d 100644 --- a/src/nvim/if_cscope.c +++ b/src/nvim/if_cscope.c @@ -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; } } |