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_pcapfile.c

    r6ef54f6 r4bd8a5b  
    215215
    216216        if (!packet->buffer || packet->buf_control == TRACE_CTRL_EXTERNAL) {
    217                 packet->buffer = malloc(LIBTRACE_PACKET_BUFSIZE);
     217                packet->buffer = malloc((size_t)LIBTRACE_PACKET_BUFSIZE);
    218218                packet->buf_control = TRACE_CTRL_PACKET;
    219219        }
     
    237237        err=libtrace_io_read(DATA(libtrace)->file,
    238238                        (char*)packet->buffer+sizeof(libtrace_pcapfile_pkt_hdr_t),
    239                         swapl(libtrace,((libtrace_pcapfile_pkt_hdr_t*)packet->buffer)->caplen)
     239                        (size_t)swapl(libtrace,((libtrace_pcapfile_pkt_hdr_t*)packet->buffer)->caplen)
    240240                        );
    241241
     
    447447        }
    448448        pcapptr = (libtrace_pcapfile_pkt_hdr_t *)packet->header;
    449         pcapptr->caplen = swapl(packet->trace,size);
     449        pcapptr->caplen = swapl(packet->trace,(uint32_t)size);
    450450        return trace_get_capture_length(packet);
    451451}
Note: See TracChangeset for help on using the changeset viewer.