0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

patch 8.2.3460: some type casts are not needed

Problem:    Some type casts are not needed.
Solution:   Remove unnecessary type casts. (closes #8934)
This commit is contained in:
=?UTF-8?q?Dundar=20G=C3=B6c?=
2021-10-02 11:26:51 +01:00
committed by Bram Moolenaar
parent 51491adfa8
commit dfa5e464d4
9 changed files with 20 additions and 18 deletions

View File

@@ -1253,7 +1253,7 @@ cs_find_common(
int matched = 0;
// read output
cs_fill_results((char *)pat, totmatches, nummatches, &matches,
cs_fill_results(pat, totmatches, nummatches, &matches,
&contexts, &matched);
vim_free(nummatches);
if (matches == NULL)
@@ -1745,7 +1745,7 @@ cs_parse_results(
*
* <filename> <context> <line number> <pattern>
*/
if ((name = strtok((char *)buf, (const char *)" ")) == NULL)
if ((name = strtok(buf, (const char *)" ")) == NULL)
return NULL;
if ((*context = strtok(NULL, (const char *)" ")) == NULL)
return NULL;