Changeset c28b5c7


Ignore:
Timestamp:
08/21/06 21:12:03 (14 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:
60e37e0
Parents:
c0cd256
Message:

More rigerous duck error handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_duck.c

    rc0cd256 rc28b5c7  
    155155                /* Read in the duck version from the start of the trace */
    156156                if ((numbytes = libtrace_io_read(INPUT->file, &version,
    157                                         sizeof(version))) == sizeof(uint32_t)) {
     157                                        sizeof(version))) != sizeof(uint32_t)) {
    158158                        trace_set_err(libtrace, errno,
    159159                                        "Reading DUCK version failed");
Note: See TracChangeset for help on using the changeset viewer.