Changeset d8f02df for lib/format_pcap.c


Ignore:
Timestamp:
02/27/06 16:53:10 (16 years ago)
Author:
Perry Lorier <perry@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
5fb2251
Parents:
8a8e54b
Message:

Cleanup even more warnings (Finding a few bugs where functions don't always
call return!)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_pcap.c

    rd5879cc rd8f02df  
    161161        pcap_close(INPUT.pcap);
    162162        INPUT.pcap=NULL;
     163
     164        return 0;
    163165}
    164166
     
    260262        packet->payload = (void *)pcappkt;
    261263
    262         assert(pcaphdr->caplen>=0 && pcaphdr->caplen<=65536);
     264        assert(pcaphdr->caplen<=65536);
    263265}
    264266
     
    388390        struct pcap_pkthdr *pcapptr = 0;
    389391        pcapptr = (struct pcap_pkthdr *)packet->header;
    390         assert(pcapptr->caplen>=0 && pcapptr->caplen<=65536);
     392        assert(pcapptr->caplen<=65536);
    391393        return pcapptr->caplen;
    392394}
Note: See TracChangeset for help on using the changeset viewer.