Changeset 8e6ac85


Ignore:
Timestamp:
08/21/06 23:19:53 (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:
1023ff4
Parents:
5d233a5
Message:

More robust error checking

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_wag.c

    rc0cd256 r8e6ac85  
    409409         */
    410410        if ((numbytes = libtrace_io_write(OUTPUT.file, packet->header,
    411                                 trace_get_framing_length(packet))) == -1) {
     411                                trace_get_framing_length(packet)))
     412                        !=trace_get_framing_length(packet)) {
    412413                trace_set_err_out(libtrace,errno,
    413414                                "write(%s)",packet->trace->uridata);
     
    415416        }
    416417        if ((numbytes = libtrace_io_write(OUTPUT.file, packet->payload,
    417                                 trace_get_capture_length(packet)) == -1)) {
     418                                trace_get_capture_length(packet))
     419                                != trace_get_capture_length(packet))) {
    418420                trace_set_err_out(libtrace,
    419421                                errno,"write(%s)",packet->trace->uridata);
Note: See TracChangeset for help on using the changeset viewer.