[DRE-commits] r4672 - trunk/libpcap-ruby/debian/patches

Paul van Tilburg paulvt at alioth.debian.org
Sun Feb 14 17:42:28 UTC 2010


Author: paulvt
Date: 2010-02-14 17:42:27 +0000 (Sun, 14 Feb 2010)
New Revision: 4672

Added:
   trunk/libpcap-ruby/debian/patches/05_pcap_dispatch.dpatch
Log:
Forgot the patch, part of the 0.6-9.1 NMU.

Added: trunk/libpcap-ruby/debian/patches/05_pcap_dispatch.dpatch
===================================================================
--- trunk/libpcap-ruby/debian/patches/05_pcap_dispatch.dpatch	                        (rev 0)
+++ trunk/libpcap-ruby/debian/patches/05_pcap_dispatch.dpatch	2010-02-14 17:42:27 UTC (rev 4672)
@@ -0,0 +1,28 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 05_pcap_dispatch.dpatch by Romain Francoise <rfrancoise at debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+ at DPATCH@
+diff -urNad libpcap-ruby-0.6~/Pcap.c libpcap-ruby-0.6/Pcap.c
+--- libpcap-ruby-0.6~/Pcap.c	2009-10-09 20:54:11.000000000 +0200
++++ libpcap-ruby-0.6/Pcap.c	2009-10-09 20:54:37.000000000 +0200
+@@ -271,8 +271,6 @@
+     return INT2FIX(ret);
+ }
+ 
+-int pcap_read(pcap_t *, int cnt, pcap_handler, u_char *); /* pcap-int.h */
+-
+ static VALUE
+ capture_loop(argc, argv, self)
+      int argc;
+@@ -319,7 +317,7 @@
+ 		    rb_thread_wait_fd(fd);
+ 		}
+ 		TRAP_BEG;
+-		ret = pcap_read(cap->pcap, 1, handler, (u_char *)cap);
++		ret = pcap_dispatch(cap->pcap, 1, handler, (u_char *)cap);
+ 		TRAP_END;
+ 	    } while (ret == 0);
+ 	    if (ret <= 0)




More information about the Pkg-ruby-extras-commits mailing list