Changeset 8f18776 for lib/protocols_l2.c


Ignore:
Timestamp:
11/06/07 14:55:03 (14 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:
dc6dc11
Parents:
e53fbe1
Message:

Avoid using assert() to report errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/protocols_l2.c

    r7daeab9 r8f18776  
    3232                uint32_t *remaining)
    3333{
    34         assert(type && "You must pass a type in!");
    35 
    3634        if (*type == 0x8100) {
    3735                libtrace_8021q_t *vlanhdr = (libtrace_8021q_t *)ethernet;
     
    5957                uint16_t *type, uint32_t *remaining)
    6058{
    61         assert(type && "You must pass a type in!");
    62 
    6359        if (*type == 0x8847) {
    6460                if ((((char*)ethernet)[2]&0x01)==0) {
Note: See TracChangeset for help on using the changeset viewer.