Skip to content

Commit

Permalink
Squelch a signed vs. unsigned comparison warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
guyharris committed Aug 13, 2016
1 parent 3ec8d28 commit b7a3e9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dlpisubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ pcap_process_pkts(pcap_t *p, pcap_handler callback, u_char *user,
pkthdr.len = origlen;
pkthdr.caplen = caplen;
/* Insure caplen does not exceed snapshot */
if (pkthdr.caplen > p->snapshot)
pkthdr.caplen = p->snapshot;
if (pkthdr.caplen > (bpf_u_int32)p->snapshot)
pkthdr.caplen = (bpf_u_int32)p->snapshot;
(*callback)(user, &pkthdr, pk);
if (++n >= count && !PACKET_COUNT_IS_UNLIMITED(count)) {
p->cc = ep - bufp;
Expand Down

0 comments on commit b7a3e9f

Please sign in to comment.