Karsten Hopp deccd7
To: vim_dev@googlegroups.com
Karsten Hopp deccd7
Subject: Patch 7.4.657
Karsten Hopp deccd7
Fcc: outbox
Karsten Hopp deccd7
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp deccd7
Mime-Version: 1.0
Karsten Hopp deccd7
Content-Type: text/plain; charset=UTF-8
Karsten Hopp deccd7
Content-Transfer-Encoding: 8bit
Karsten Hopp deccd7
------------
Karsten Hopp deccd7
Karsten Hopp deccd7
Patch 7.4.657 (after 7.4.656)
Karsten Hopp deccd7
Problem:    Compiler warnings for pointer mismatch.
Karsten Hopp deccd7
Solution:   Add a typecast. (John Marriott)
Karsten Hopp deccd7
Files:	    src/misc1.c
Karsten Hopp deccd7
Karsten Hopp deccd7
Karsten Hopp deccd7
*** ../vim-7.4.656/src/misc1.c	2015-03-05 21:21:14.497360702 +0100
Karsten Hopp deccd7
--- src/misc1.c	2015-03-06 21:34:00.343452890 +0100
Karsten Hopp deccd7
***************
Karsten Hopp deccd7
*** 10175,10181 ****
Karsten Hopp deccd7
  		    if (*path_end != NUL)
Karsten Hopp deccd7
  			backslash_halve(buf + len + 1);
Karsten Hopp deccd7
  		    /* add existing file or symbolic link */
Karsten Hopp deccd7
! 		    if ((flags & EW_ALLLINKS) ? mch_lstat(buf, &sb) >= 0
Karsten Hopp deccd7
  						      : mch_getperm(buf) >= 0)
Karsten Hopp deccd7
  		    {
Karsten Hopp deccd7
  #ifdef MACOS_CONVERT
Karsten Hopp deccd7
--- 10175,10181 ----
Karsten Hopp deccd7
  		    if (*path_end != NUL)
Karsten Hopp deccd7
  			backslash_halve(buf + len + 1);
Karsten Hopp deccd7
  		    /* add existing file or symbolic link */
Karsten Hopp deccd7
! 		    if ((flags & EW_ALLLINKS) ? mch_lstat((char *)buf, &sb) >= 0
Karsten Hopp deccd7
  						      : mch_getperm(buf) >= 0)
Karsten Hopp deccd7
  		    {
Karsten Hopp deccd7
  #ifdef MACOS_CONVERT
Karsten Hopp deccd7
***************
Karsten Hopp deccd7
*** 10937,10943 ****
Karsten Hopp deccd7
  
Karsten Hopp deccd7
      /* if the file/dir/link doesn't exist, may not add it */
Karsten Hopp deccd7
      if (!(flags & EW_NOTFOUND) && ((flags & EW_ALLLINKS)
Karsten Hopp deccd7
! 				? mch_lstat(f, &sb) < 0 : mch_getperm(f) < 0))
Karsten Hopp deccd7
  	return;
Karsten Hopp deccd7
  
Karsten Hopp deccd7
  #ifdef FNAME_ILLEGAL
Karsten Hopp deccd7
--- 10937,10943 ----
Karsten Hopp deccd7
  
Karsten Hopp deccd7
      /* if the file/dir/link doesn't exist, may not add it */
Karsten Hopp deccd7
      if (!(flags & EW_NOTFOUND) && ((flags & EW_ALLLINKS)
Karsten Hopp deccd7
! 			? mch_lstat((char *)f, &sb) < 0 : mch_getperm(f) < 0))
Karsten Hopp deccd7
  	return;
Karsten Hopp deccd7
  
Karsten Hopp deccd7
  #ifdef FNAME_ILLEGAL
Karsten Hopp deccd7
*** ../vim-7.4.656/src/version.c	2015-03-05 21:21:14.497360702 +0100
Karsten Hopp deccd7
--- src/version.c	2015-03-06 21:35:14.050606301 +0100
Karsten Hopp deccd7
***************
Karsten Hopp deccd7
*** 743,744 ****
Karsten Hopp deccd7
--- 743,746 ----
Karsten Hopp deccd7
  {   /* Add new patch number below this line */
Karsten Hopp deccd7
+ /**/
Karsten Hopp deccd7
+     657,
Karsten Hopp deccd7
  /**/
Karsten Hopp deccd7
Karsten Hopp deccd7
-- 
Karsten Hopp deccd7
You got to work at a mill?  Lucky!  I got sent back to work in the
Karsten Hopp deccd7
acid-mines for my daily crust of stale bread... which not even the
Karsten Hopp deccd7
birds would eat.
Karsten Hopp deccd7
Karsten Hopp deccd7
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp deccd7
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp deccd7
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp deccd7
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///