Changeset c05dda6


Ignore:
Timestamp:
05/01/06 22:24:29 (15 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:
ddd01fb
Parents:
4923d34
Message:

& has lower precidence than ==, so add parenthesis as gcc suggests!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/protocols.c

    r4923d34 rc05dda6  
    173173                        return trace_get_payload_from_ethernet(link,type,remaining);
    174174                case TRACE_TYPE_NONE:
    175                         if (*(char*)link&0xF0 == 0x40)
     175                        if ((*(char*)link&0xF0) == 0x40)
    176176                                *type=0x0800;
    177                         else if (*(char*)link&0xF0 == 0x60)
     177                        else if ((*(char*)link&0xF0) == 0x60)
    178178                                *type=0x86DD;
    179179                        return link; /* I love the simplicity */
Note: See TracChangeset for help on using the changeset viewer.