Changeset 6c248a9 for lib/format_wag.c


Ignore:
Timestamp:
03/01/06 11:52: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:
30c0246
Parents:
4aa4615
Message:

Add support for the other seek formats.
Fix bugs in other formats to do with _start()/_pause()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_wag.c

    r4aa4615 r6c248a9  
    142142{
    143143        libtrace->format_data = malloc(sizeof(struct wag_format_data_t));
    144 
    145144        return 0;
    146145}
     
    148147static int wtf_start_input(libtrace_t *libtrace)
    149148{
     149        if (DATA(libtrace)->input.file)
     150                return 0; /* success */
    150151        DATA(libtrace)->input.file = trace_open_file(libtrace);
    151152
    152         if (DATA(libtrace)->input.file)
    153                 return 0;
    154 
    155         return -1;
     153        if (!DATA(libtrace)->input.file)
     154                return -1;
     155
     156        return 0; /* success */
    156157}
    157158
     
    360361        if (packet->trace->format != &wag_trace) {
    361362                trace_set_err_out(libtrace,TRACE_ERR_NO_CONVERSION,
    362                                 "Cannot convert from wag trace format to %s format yet",
     363                                "Cannot convert to wag trace format from %s format yet",
    363364                                packet->trace->format->name);
    364365                return -1;
Note: See TracChangeset for help on using the changeset viewer.