]> The Tcpdump Group git mirrors - libpcap/commitdiff
Squelch a narrowing warning.
authorGuy Harris <[email protected]>
Fri, 9 Nov 2018 19:22:46 +0000 (11:22 -0800)
committerGuy Harris <[email protected]>
Fri, 9 Nov 2018 19:22:46 +0000 (11:22 -0800)
pcap-netmap.c

index ff9e79cb40f6e843ed90facb956ad19be160a87e..44ac6b5614868b8db606e9e46ed013c4172af965 100644 (file)
@@ -67,7 +67,7 @@ pcap_netmap_stats(pcap_t *p, struct pcap_stat *ps)
 {
        struct pcap_netmap *pn = p->priv;
 
-       ps->ps_recv = pn->rx_pkts;
+       ps->ps_recv = (u_int)pn->rx_pkts;
        ps->ps_drop = 0;
        ps->ps_ifdrop = 0;
        return 0;