Changeset 871281c for lib/protocols_l2.c


Ignore:
Timestamp:
11/14/08 15:47:59 (13 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:
9b25f5f
Parents:
896ad39
Message:

Make sure NULL is defined.
Make sure stdio is included for printf
Use fprintf, not printf

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/protocols_l2.c

    r29c8666 r871281c  
    44#include "libtrace_int.h"
    55#include <assert.h>
     6#include <stdlib.h>
    67
    78/* Returns the payload from 802.3 ethernet.  Type optionally returned in
     
    314315{
    315316        void *l;
    316         assert(linktype != -1);
     317        assert(linktype != ~0U);
    317318        switch(linktype) {
    318319                /* Packet Metadata headers, not layer2 headers */
Note: See TracChangeset for help on using the changeset viewer.