Changeset d7e8e67 for lib/format_linux.c


Ignore:
Timestamp:
03/23/10 11:47:46 (12 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:
ddab7f9
Parents:
f1ab057
Message:

Fix some annoying warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_linux.c

    r238d50a rd7e8e67  
    496496        hdr->wirelen = recvmsg(FORMAT(libtrace->format_data)->fd, &msghdr, 0);
    497497
    498         if (hdr->wirelen==-1) {
     498        if (hdr->wirelen==~0U) {
    499499                trace_set_err(libtrace,errno,"recvmsg");
    500500                return -1;
    501501        }
    502502
    503         hdr->caplen=LIBTRACE_MIN(snaplen,hdr->wirelen);
     503        hdr->caplen=LIBTRACE_MIN((unsigned int)snaplen,(unsigned int)hdr->wirelen);
    504504
    505505        /* Extract the timestamps from the msghdr and store them in our
Note: See TracChangeset for help on using the changeset viewer.