summaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index a0189ea45..9a4880493 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -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)