Changeset 4bd8a5b for lib/format_duck.c


Ignore:
Timestamp:
12/24/06 17:05:29 (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:
870e501
Parents:
778d459
Message:

Cleanup a gazillion warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_duck.c

    rac0fdbf r4bd8a5b  
    140140       
    141141        if (!packet->buffer || packet->buf_control == TRACE_CTRL_EXTERNAL) {
    142                 packet->buffer = malloc(LIBTRACE_PACKET_BUFSIZE);
     142                packet->buffer = malloc((size_t)LIBTRACE_PACKET_BUFSIZE);
    143143                packet->buf_control = TRACE_CTRL_PACKET;
    144144                if (!packet->buffer) {
     
    181181
    182182        if ((numbytes = libtrace_io_read(INPUT->file, packet->payload,
    183                                         duck_size)) != (int)duck_size) {
     183                                        (size_t)duck_size)) != (int)duck_size) {
    184184                if (numbytes == -1) {
    185185                        trace_set_err(libtrace, errno, "Reading DUCK failed");
Note: See TracChangeset for help on using the changeset viewer.