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

Cleanup a gazillion warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_legacy.c

    rcab58c5 r4bd8a5b  
    116116        if (!packet->buffer || packet->buf_control == TRACE_CTRL_EXTERNAL) {
    117117                packet->buf_control = TRACE_CTRL_PACKET;
    118                 packet->buffer=malloc(LIBTRACE_PACKET_BUFSIZE);
     118                packet->buffer=malloc((size_t)LIBTRACE_PACKET_BUFSIZE);
    119119        }
    120120        buffer = packet->buffer;
     
    136136        if ((numbytes=libtrace_io_read(INPUT.file,
    137137                                        buffer,
    138                                         64)) != 64) {
     138                                        (size_t)64)) != 64) {
    139139                if (numbytes!=0) {
    140140                        trace_set_err(libtrace,errno,"read(%s)",libtrace->uridata);
Note: See TracChangeset for help on using the changeset viewer.