Mercurial > vim
comparison src/if_cscope.c @ 25852:336e2d9924e6 v8.2.3460
patch 8.2.3460: some type casts are not needed
Commit: https://github.com/vim/vim/commit/dfa5e464d459f84200a73d178f1ecefe75bbe511
Author: =?UTF-8?q?Dundar=20G=C3=B6c?= <gocdundar@gmail.com>
Date: Sat Oct 2 11:26:51 2021 +0100
patch 8.2.3460: some type casts are not needed
Problem: Some type casts are not needed.
Solution: Remove unnecessary type casts. (closes https://github.com/vim/vim/issues/8934)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 02 Oct 2021 12:30:05 +0200 |
parents | 75031a22be39 |
children | 109e9272cd5c |
comparison
equal
deleted
inserted
replaced
25851:6dd46a7fa3cd | 25852:336e2d9924e6 |
---|---|
1251 { | 1251 { |
1252 char **matches = NULL, **contexts = NULL; | 1252 char **matches = NULL, **contexts = NULL; |
1253 int matched = 0; | 1253 int matched = 0; |
1254 | 1254 |
1255 // read output | 1255 // read output |
1256 cs_fill_results((char *)pat, totmatches, nummatches, &matches, | 1256 cs_fill_results(pat, totmatches, nummatches, &matches, |
1257 &contexts, &matched); | 1257 &contexts, &matched); |
1258 vim_free(nummatches); | 1258 vim_free(nummatches); |
1259 if (matches == NULL) | 1259 if (matches == NULL) |
1260 return FALSE; | 1260 return FALSE; |
1261 | 1261 |
1743 /* | 1743 /* |
1744 * cscope output is in the following format: | 1744 * cscope output is in the following format: |
1745 * | 1745 * |
1746 * <filename> <context> <line number> <pattern> | 1746 * <filename> <context> <line number> <pattern> |
1747 */ | 1747 */ |
1748 if ((name = strtok((char *)buf, (const char *)" ")) == NULL) | 1748 if ((name = strtok(buf, (const char *)" ")) == NULL) |
1749 return NULL; | 1749 return NULL; |
1750 if ((*context = strtok(NULL, (const char *)" ")) == NULL) | 1750 if ((*context = strtok(NULL, (const char *)" ")) == NULL) |
1751 return NULL; | 1751 return NULL; |
1752 if ((*linenumber = strtok(NULL, (const char *)" ")) == NULL) | 1752 if ((*linenumber = strtok(NULL, (const char *)" ")) == NULL) |
1753 return NULL; | 1753 return NULL; |