diff options
author | =?UTF-8?q?Dundar=20G=C3=B6c?= <gocdundar@gmail.com> | 2021-10-02 11:26:51 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-10-02 11:26:51 +0100 |
commit | dfa5e464d459f84200a73d178f1ecefe75bbe511 (patch) | |
tree | 2bf8a9283ea1bb99757758918884b9a92f2db659 /src/if_cscope.c | |
parent | 51491adfa86fd66a857cd7ec50d0b57dbdf3da59 (diff) | |
download | vim-git-dfa5e464d459f84200a73d178f1ecefe75bbe511.tar.gz |
patch 8.2.3460: some type casts are not neededv8.2.3460
Problem: Some type casts are not needed.
Solution: Remove unnecessary type casts. (closes #8934)
Diffstat (limited to 'src/if_cscope.c')
-rw-r--r-- | src/if_cscope.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/if_cscope.c b/src/if_cscope.c index 4e313cebc..7117a253f 100644 --- a/src/if_cscope.c +++ b/src/if_cscope.c @@ -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; |