From b7a3e9fd9eb195251e392aadb8204cbb7478ed02 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sat, 13 Aug 2016 01:52:38 -0700 Subject: [PATCH] Squelch a signed vs. unsigned comparison warning. --- dlpisubs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlpisubs.c b/dlpisubs.c index 863bd34a12..fb94a60576 100644 --- a/dlpisubs.c +++ b/dlpisubs.c @@ -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;