From ea54f3e013c336e56e0cb59c68cf7abdecb4c0b6 Mon Sep 17 00:00:00 2001 From: HD Moore Date: Wed, 4 Nov 2009 01:18:37 +0000 Subject: [PATCH] Minor tweaks for formatting git-svn-id: file:///home/svn/framework3/trunk@7343 4d416f70-5f16-0410-b530-b9f4589650da --- external/pcaprub/pcaprub.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/external/pcaprub/pcaprub.c b/external/pcaprub/pcaprub.c index 127c24597d..a00f029edb 100644 --- a/external/pcaprub/pcaprub.c +++ b/external/pcaprub/pcaprub.c @@ -200,9 +200,9 @@ rbpcap_open_live(VALUE self, VALUE iface,VALUE snaplen,VALUE promisc, VALUE time strncpy(rbp->iface, RSTRING_PTR(iface), sizeof(rbp->iface) - 1); - if(rbp->pd) { - pcap_close(rbp->pd); - } + if(rbp->pd) { + pcap_close(rbp->pd); + } rbp->pd = pcap_open_live( RSTRING_PTR(iface), @@ -391,7 +391,7 @@ rbpcap_next(VALUE self) if(rbp->type == OFFLINE && ret <= 0) return Qnil; if(ret > 0 && job.hdr.caplen > 0) - return rb_str_new((char *) job.pkt, job.hdr.caplen); + return rb_str_new((char *) job.pkt, job.hdr.caplen); return Qnil; }