Ignore:
Timestamp:
02/21/14 10:38:06 (7 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/protocols_pktmeta.c

    r77f79c7 rf7bcbfb  
    162162                case TRACE_TYPE_NONDATA:
    163163                case TRACE_TYPE_OPENBSD_LOOP:
     164                case TRACE_TYPE_UNKNOWN:
    164165                        return NULL;
    165166        }
     
    218219                case TRACE_TYPE_NONDATA:
    219220                case TRACE_TYPE_OPENBSD_LOOP:
     221                case TRACE_TYPE_UNKNOWN:
    220222                        /* In this case, the pointer passed in does not point
    221223                         * to a metadata header and so we cannot get the
Note: See TracChangeset for help on using the changeset viewer.