summaryrefslogtreecommitdiffstats
path: root/sys/dev/netmap/if_em_netmap.h
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2012-08-02 11:59:43 +0000
committerluigi <luigi@FreeBSD.org>2012-08-02 11:59:43 +0000
commitd1235033a6112f7fb7381e865e7c04b75be24d0e (patch)
treeb8523db838dec58ef47570c5b3b5168a51247b46 /sys/dev/netmap/if_em_netmap.h
parent705abad18c0e960f992967ceff1b01218b9423f6 (diff)
downloadFreeBSD-src-d1235033a6112f7fb7381e865e7c04b75be24d0e.zip
FreeBSD-src-d1235033a6112f7fb7381e865e7c04b75be24d0e.tar.gz
fix some signed/unsigned warnings in the netmap code.
Unfortunately the original drivers still have a lot of sign conversion/comparison warnings.
Diffstat (limited to 'sys/dev/netmap/if_em_netmap.h')
-rw-r--r--sys/dev/netmap/if_em_netmap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/netmap/if_em_netmap.h b/sys/dev/netmap/if_em_netmap.h
index 8a3893e..b4b268a 100644
--- a/sys/dev/netmap/if_em_netmap.h
+++ b/sys/dev/netmap/if_em_netmap.h
@@ -171,7 +171,7 @@ em_netmap_txsync(struct ifnet *ifp, u_int ring_nr, int do_lock)
u_int j, k, l, n = 0, lim = kring->nkr_num_slots - 1;
/* generate an interrupt approximately every half ring */
- int report_frequency = kring->nkr_num_slots >> 1;
+ u_int report_frequency = kring->nkr_num_slots >> 1;
k = ring->cur;
if (k > lim)
OpenPOWER on IntegriCloud