X-Git-Url: https://git.tcpdump.org/libpcap/blobdiff_plain/72ee65e9a0dbc0ff8a91cdf24fb446de62429b94..9df01dba7d4a698dbfec57e678e5a73dae93fa6d:/pcap-netmap.c?ds=sidebyside diff --git a/pcap-netmap.c b/pcap-netmap.c index ff9e79cb..3613a756 100644 --- a/pcap-netmap.c +++ b/pcap-netmap.c @@ -29,7 +29,6 @@ #endif #include -#include #include #include #include @@ -67,7 +66,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;