New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #17387: patch-Pcap.c.diff

File patch-Pcap.c.diff, 0.5 KB (added by nathan@…, 3 years ago)

Patch to prevent warnings on require (see linked Gentoo bug in the ticket description)

  • Pcap.c

    old new  
    782782    /* define class PcapStat */ 
    783783    cPcapStat = rb_funcall(rb_cStruct, rb_intern("new"), 4, 
    784784                           Qnil, 
    785                            INT2NUM(rb_intern("recv")), 
    786                            INT2NUM(rb_intern("drop")), 
    787                            INT2NUM(rb_intern("ifdrop"))); 
     785                           ID2SYM(rb_intern("recv")), 
     786                           ID2SYM(rb_intern("drop")), 
     787                           ID2SYM(rb_intern("ifdrop"))); 
    788788    rb_define_const(mPcap, "Stat", cPcapStat); 
    789789 
    790790    /* define exception classes */