comparison src/misc1.c @ 6665:9fda0c52db0b v7.4.657

updated for version 7.4.657 Problem: Compiler warnings for pointer mismatch. Solution: Add a typecast. (John Marriott)
author Bram Moolenaar <bram@vim.org>
date Fri, 06 Mar 2015 22:00:11 +0100
parents 056809de0b29
children c4cb95fb4c58
comparison
equal deleted inserted replaced
6664:41703afe4b59 6665:9fda0c52db0b
10173 /* no more wildcards, check if there is a match */ 10173 /* no more wildcards, check if there is a match */
10174 /* remove backslashes for the remaining components only */ 10174 /* remove backslashes for the remaining components only */
10175 if (*path_end != NUL) 10175 if (*path_end != NUL)
10176 backslash_halve(buf + len + 1); 10176 backslash_halve(buf + len + 1);
10177 /* add existing file or symbolic link */ 10177 /* add existing file or symbolic link */
10178 if ((flags & EW_ALLLINKS) ? mch_lstat(buf, &sb) >= 0 10178 if ((flags & EW_ALLLINKS) ? mch_lstat((char *)buf, &sb) >= 0
10179 : mch_getperm(buf) >= 0) 10179 : mch_getperm(buf) >= 0)
10180 { 10180 {
10181 #ifdef MACOS_CONVERT 10181 #ifdef MACOS_CONVERT
10182 size_t precomp_len = STRLEN(buf)+1; 10182 size_t precomp_len = STRLEN(buf)+1;
10183 char_u *precomp_buf = 10183 char_u *precomp_buf =
10935 int isdir; 10935 int isdir;
10936 struct stat sb; 10936 struct stat sb;
10937 10937
10938 /* if the file/dir/link doesn't exist, may not add it */ 10938 /* if the file/dir/link doesn't exist, may not add it */
10939 if (!(flags & EW_NOTFOUND) && ((flags & EW_ALLLINKS) 10939 if (!(flags & EW_NOTFOUND) && ((flags & EW_ALLLINKS)
10940 ? mch_lstat(f, &sb) < 0 : mch_getperm(f) < 0)) 10940 ? mch_lstat((char *)f, &sb) < 0 : mch_getperm(f) < 0))
10941 return; 10941 return;
10942 10942
10943 #ifdef FNAME_ILLEGAL 10943 #ifdef FNAME_ILLEGAL
10944 /* if the file/dir contains illegal characters, don't add it */ 10944 /* if the file/dir contains illegal characters, don't add it */
10945 if (vim_strpbrk(f, (char_u *)FNAME_ILLEGAL) != NULL) 10945 if (vim_strpbrk(f, (char_u *)FNAME_ILLEGAL) != NULL)