Changeset 103cc3b for lib/format_pcap.c


Ignore:
Timestamp:
09/18/06 21:03:01 (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:
755e794
Parents:
1dc7df3
Message:

Suppress a warning by forcing an error return (even tho this code should never
be called if this is false)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_pcap.c

    r85a79b0 r103cc3b  
    388388                        packet->payload,
    389389                        trace_get_capture_length(packet));
     390#else
     391    trace_set_err(packet->trace,TRACE_ERR_UNSUPPORTED,"writing is not supported on this platform");
     392        return -1;
    390393#endif
    391394#endif
Note: See TracChangeset for help on using the changeset viewer.