Add a fix for warnings emitted every time the module is loaded.

PR:		123313
Submitted by:	David Duchscher <daved@tamu.edu>
This commit is contained in:
Stefan Walter 2009-01-08 17:18:48 +00:00
parent 5097ff980c
commit 0eaf1e2764
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=225502
2 changed files with 16 additions and 1 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= pcap
PORTVERSION= 0.6
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= net ruby
MASTER_SITES= http://www.goto.info.waseda.ac.jp/~fukusima/ruby/
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}

View File

@ -0,0 +1,15 @@
--- Pcap.c.orig 2008-05-01 15:26:25.000000000 -0500
+++ Pcap.c 2008-05-01 15:27:21.000000000 -0500
@@ -782,9 +782,9 @@
/* define class PcapStat */
cPcapStat = rb_funcall(rb_cStruct, rb_intern("new"), 4,
Qnil,
- INT2NUM(rb_intern("recv")),
- INT2NUM(rb_intern("drop")),
- INT2NUM(rb_intern("ifdrop")));
+ ID2SYM(rb_intern("recv")),
+ ID2SYM(rb_intern("drop")),
+ ID2SYM(rb_intern("ifdrop")));
rb_define_const(mPcap, "Stat", cPcapStat);
/* define exception classes */