summaryrefslogtreecommitdiff
path: root/src/misc1.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-02-16 15:06:59 +0100
committerBram Moolenaar <Bram@vim.org>2016-02-16 15:06:59 +0100
commit6aa2cd4be287f35f95f35c2cec6d5a24f53c4d3c (patch)
treed2277cebb1354524326ac1333b3bd47f7453c456 /src/misc1.c
parentf8df7addc5f741c16fa2a458f8777ac1fdf2e01e (diff)
downloadvim-git-6aa2cd4be287f35f95f35c2cec6d5a24f53c4d3c.tar.gz
patch 7.4.1334v7.4.1334
Problem: Many compiler warnings with MingW. Solution: Add type casts. (Yasuhiro Matsumoto)
Diffstat (limited to 'src/misc1.c')
-rw-r--r--src/misc1.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/misc1.c b/src/misc1.c
index d43212538..6f96f2f21 100644
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -3779,7 +3779,7 @@ init_homedir(void)
homedrive = mch_getenv((char_u *)"HOMEDRIVE");
homepath = mch_getenv((char_u *)"HOMEPATH");
if (homepath == NULL || *homepath == NUL)
- homepath = "\\";
+ homepath = (char_u *)"\\";
if (homedrive != NULL
&& STRLEN(homedrive) + STRLEN(homepath) < MAXPATHL)
{
@@ -3817,7 +3817,7 @@ init_homedir(void)
* Best assumption we can make in such a situation.
*/
if (var == NULL)
- var = "C:/";
+ var = (char_u *)"C:/";
#endif
if (var != NULL)
{
@@ -9944,7 +9944,7 @@ dos_expandpath(
if (wn == NULL)
# endif
- hFind = FindFirstFile(buf, &fb);
+ hFind = FindFirstFile((LPCSTR)buf, &fb);
ok = (hFind != INVALID_HANDLE_VALUE);
#else
/* If we are expanding wildcards we try both files and directories */
@@ -10042,7 +10042,7 @@ dos_expandpath(
}
if (wn == NULL)
# endif
- hFind = FindFirstFile(buf, &fb);
+ hFind = FindFirstFile((LPCSTR)buf, &fb);
ok = (hFind != INVALID_HANDLE_VALUE);
#else
ok = (findfirst((char *)buf, &fb,