Changeset 85a79b0 for lib/format_duck.c


Ignore:
Timestamp:
08/25/06 15:47:43 (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:
e283596
Parents:
e373992
Message:

Fixed lots of warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_duck.c

    rc28b5c7 r85a79b0  
    4747#define INPUT DATA(libtrace)
    4848#define OUTPUT DATAOUT(libtrace)
    49 
    50 
    51 static struct libtrace_format_t duck;
    5249
    5350struct duck_format_data_t {
     
    202199
    203200static int duck_write_packet(libtrace_out_t *libtrace,
    204                                 const libtrace_packet_t *packet) {
     201                libtrace_packet_t *packet)
     202{
    205203
    206204        int numbytes = 0;
     
    228226        if ((numbytes = libtrace_io_write(OUTPUT->file, packet->payload,
    229227                                        trace_get_capture_length(packet))) !=
    230                                 trace_get_capture_length(packet)) {
     228                                (int)trace_get_capture_length(packet)) {
    231229                trace_set_err_out(libtrace, errno, "Writing DUCK failed");
    232230                return -1;
Note: See TracChangeset for help on using the changeset viewer.