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:
committed by
Bram Moolenaar
parent
51491adfa8
commit
dfa5e464d4
@@ -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;
|
||||
|
Reference in New Issue
Block a user