I see 2 compilation warnings when I enable the +sniff feature with
'configure --enable-sniff':

if_sniff.c:719: warning: ignoring return value of 'pipe', declared
with attribute warn_unused_result
if_sniff.c:720: warning: ignoring return value of 'pipe', declared
with attribute warn_unused_result

Attached patch fixes them.

I've never used SNiFF+, but I'm curious about it.  I searched for it on
Google.  It seems that this product was taken over by Windriver, but
there is nothing about SNiFF+ on Windriver's website.

- Is SNiFF+ dead?
- Is there any free version available?

Also, I would also expect to get an error message when doing ":sniff connect"
in gvim, since I don't have SNiFF+ installed.  But gvim does not detect that the
connection fails, and hangs after a few seconds (100% CPU usage and I need
to kill -9 vim).

-- Dominique

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Index: if_sniff.c
===================================================================
RCS file: /cvsroot/vim/vim7/src/if_sniff.c,v
retrieving revision 1.10
diff -c -r1.10 if_sniff.c
*** if_sniff.c	15 Nov 2008 13:11:10 -0000	1.10
--- if_sniff.c	6 Dec 2008 09:30:41 -0000
***************
*** 716,723 ****
  #else		/* UNIX Version of the Code */
      int ToSniffEmacs[2], FromSniffEmacs[2];
  
!     pipe(ToSniffEmacs);
!     pipe(FromSniffEmacs);
  
      /* fork */
      if ((sniffemacs_pid=fork()) == 0)
--- 716,725 ----
  #else		/* UNIX Version of the Code */
      int ToSniffEmacs[2], FromSniffEmacs[2];
  
!     if (pipe(ToSniffEmacs) != 0)
!         return 1;
!     if (pipe(FromSniffEmacs) != 0)
!         return 1;
  
      /* fork */
      if ((sniffemacs_pid=fork()) == 0)

Raspunde prin e-mail lui