aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/runtime.c
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2021-10-04 15:40:43 +0200
committerGitHub <noreply@github.com>2021-10-04 06:40:43 -0700
commit44f7b46199aebedb0ff7f8ce782b375a0e156b27 (patch)
treeffc0b6403ce358bda871d07b10b690da8e597966 /src/nvim/runtime.c
parentb4c54ffa2216f46f9f0c456c7c53d3f6a66dad15 (diff)
downloadrneovim-44f7b46199aebedb0ff7f8ce782b375a0e156b27.tar.gz
rneovim-44f7b46199aebedb0ff7f8ce782b375a0e156b27.tar.bz2
rneovim-44f7b46199aebedb0ff7f8ce782b375a0e156b27.zip
refactor: remove redundant char casts #15888
Diffstat (limited to 'src/nvim/runtime.c')
-rw-r--r--src/nvim/runtime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/runtime.c b/src/nvim/runtime.c
index e1669a8c19..0e2d23e69b 100644
--- a/src/nvim/runtime.c
+++ b/src/nvim/runtime.c
@@ -335,7 +335,7 @@ int do_in_path_and_pp(char_u *path, char_u *name, int flags, DoInRuntimepathCB c
static void push_path(RuntimeSearchPath *search_path, Map(String, handle_T) *rtp_used,
char *entry, bool after)
{
- handle_T h = map_get(String, handle_T)(rtp_used, cstr_as_string((char *)entry));
+ handle_T h = map_get(String, handle_T)(rtp_used, cstr_as_string(entry));
if (h == 0) {
char *allocated = xstrdup(entry);
map_put(String, handle_T)(rtp_used, cstr_as_string(allocated), 1);
@@ -776,7 +776,7 @@ static bool pack_has_entries(char_u *buf)
{
int num_files;
char_u **files;
- char_u *(pat[]) = { (char_u *)buf };
+ char_u *(pat[]) = { buf };
if (gen_expand_wildcards(1, pat, &num_files, &files, EW_DIR) == OK) {
FreeWild(num_files, files);
}