Karsten Hopp 4e75d0
To: vim-dev@vim.org
Karsten Hopp 4e75d0
Subject: Patch 7.2.072 (extra)
Karsten Hopp 4e75d0
Fcc: outbox
Karsten Hopp 4e75d0
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 4e75d0
Mime-Version: 1.0
Karsten Hopp 4e75d0
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp 4e75d0
Content-Transfer-Encoding: 8bit
Karsten Hopp 4e75d0
------------
Karsten Hopp 4e75d0
Karsten Hopp 4e75d0
Patch 7.2.072 (extra)
Karsten Hopp 4e75d0
Problem:    Compiler warning in Sniff code.
Karsten Hopp 4e75d0
Solution:   Use return value of pipe(). (Dominique Pelle)
Karsten Hopp 4e75d0
Files:	    src/if_sniff.c
Karsten Hopp 4e75d0
Karsten Hopp 4e75d0
NOTE: Patch was adjusted to avoid problems with CVS interference.
Karsten Hopp 4e75d0
Karsten Hopp 4e75d0
*** ../vim-7.2.071/src/if_sniff.c	Sat Nov 15 14:11:10 2008
Karsten Hopp 4e75d0
--- src/if_sniff.c	Sat Dec  6 14:01:57 2008
Karsten Hopp 4e75d0
***************
Karsten Hopp 4e75d0
*** 716,723 ****
Karsten Hopp 4e75d0
  #else		/* UNIX Version of the Code */
Karsten Hopp 4e75d0
      int ToSniffEmacs[2], FromSniffEmacs[2];
Karsten Hopp 4e75d0
  
Karsten Hopp 4e75d0
!     pipe(ToSniffEmacs);
Karsten Hopp 4e75d0
!     pipe(FromSniffEmacs);
Karsten Hopp 4e75d0
  
Karsten Hopp 4e75d0
      /* fork */
Karsten Hopp 4e75d0
      if ((sniffemacs_pid=fork()) == 0)
Karsten Hopp 4e75d0
--- 714,723 ----
Karsten Hopp 4e75d0
  #else		/* UNIX Version of the Code */
Karsten Hopp 4e75d0
      int ToSniffEmacs[2], FromSniffEmacs[2];
Karsten Hopp 4e75d0
  
Karsten Hopp 4e75d0
!     if (pipe(ToSniffEmacs) != 0)
Karsten Hopp 4e75d0
! 	return 1;
Karsten Hopp 4e75d0
!     if (pipe(FromSniffEmacs) != 0)
Karsten Hopp 4e75d0
! 	return 1;
Karsten Hopp 4e75d0
  
Karsten Hopp 4e75d0
      /* fork */
Karsten Hopp 4e75d0
      if ((sniffemacs_pid=fork()) == 0)
Karsten Hopp 4e75d0
*** ../vim-7.2.071/src/version.c	Wed Dec 24 12:20:10 2008
Karsten Hopp 4e75d0
--- src/version.c	Wed Dec 24 12:42:13 2008
Karsten Hopp 4e75d0
***************
Karsten Hopp 4e75d0
*** 678,679 ****
Karsten Hopp 4e75d0
--- 678,681 ----
Karsten Hopp 4e75d0
  {   /* Add new patch number below this line */
Karsten Hopp 4e75d0
+ /**/
Karsten Hopp 4e75d0
+     72,
Karsten Hopp 4e75d0
  /**/
Karsten Hopp 4e75d0
Karsten Hopp 4e75d0
-- 
Karsten Hopp 4e75d0
SIGIRO -- irony detected (iron core dumped)
Karsten Hopp 4e75d0
Karsten Hopp 4e75d0
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 4e75d0
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 4e75d0
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 4e75d0
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///