1
0
forked from aniani/vim

patch 8.2.4241: some type casts are redundant

Problem:    Some type casts are redundant.
Solution:   Remove the type casts. (closes #9643)
This commit is contained in:
=?UTF-8?q?Dundar=20G=C3=B6c?=
2022-01-28 15:28:04 +00:00
committed by Bram Moolenaar
parent fb80862e49
commit 420fabcd4f
32 changed files with 92 additions and 93 deletions

View File

@@ -5666,7 +5666,7 @@ mch_job_start(char **argv, job_T *job, jobopt_T *options, int is_terminal)
{
typval_T *item = &dict_lookup(hi)->di_tv;
vim_setenv((char_u*)hi->hi_key, tv_get_string(item));
vim_setenv(hi->hi_key, tv_get_string(item));
--todo;
}
}
@@ -7487,7 +7487,7 @@ mch_libcall(
if (hinstLib == NULL)
{
// "dlerr" must be used before dlclose()
dlerr = (char *)dlerror();
dlerr = dlerror();
if (dlerr != NULL)
semsg(_("dlerror = \"%s\""), dlerr);
}
@@ -7522,7 +7522,7 @@ mch_libcall(
{
# if defined(USE_DLOPEN)
*(void **)(&ProcAdd) = dlsym(hinstLib, (const char *)funcname);
dlerr = (char *)dlerror();
dlerr = dlerror();
# else
if (shl_findsym(&hinstLib, (const char *)funcname,
TYPE_PROCEDURE, (void *)&ProcAdd) < 0)
@@ -7544,7 +7544,7 @@ mch_libcall(
{
# if defined(USE_DLOPEN)
*(void **)(&ProcAddI) = dlsym(hinstLib, (const char *)funcname);
dlerr = (char *)dlerror();
dlerr = dlerror();
# else
if (shl_findsym(&hinstLib, (const char *)funcname,
TYPE_PROCEDURE, (void *)&ProcAddI) < 0)