Changeset f7bcbfb for lib/format_erf.c


Ignore:
Timestamp:
02/21/14 10:38:06 (8 years ago)
Author:
Shane Alcock <salcock@…>
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:
a31777e
Parents:
86bec15
Message:

Fixed warnings that cropped up when building with clang

  • Added proper "unknown" or "error" values to some libtrace enums. This removes the need for the hideous ==~0U checks that we used to do to check for errors and should be a bit more robust.
  • Fixed potential strncat bugs in one of the libpacketdump decoders.
  • Changed some null-ops in ior-peek as our current method was triggering warnings.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_erf.c

    r98d4e2d rf7bcbfb  
    637637                /* Flags. Can't do this */
    638638                memset(&erfhdr.flags,1,sizeof(erfhdr.flags));
    639                 if (trace_get_direction(packet)!=~0U)
     639                if (trace_get_direction(packet)!=TRACE_DIR_UNKNOWN)
    640640                        erfhdr.flags.iface = trace_get_direction(packet);
    641641
Note: See TracChangeset for help on using the changeset viewer.