From b1a4a6fa7b233abbca763178095b076d409cce80 Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Thu, 29 Oct 2015 18:56:11 +0100 Subject: ring: alloc_ring_frames_generic make types size_t Lets make i and num as size_t, there's no particular reason for them to be int. At least i is used to setup iov_base offsets. Signed-off-by: Daniel Borkmann --- ring_rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ring_rx.c') diff --git a/ring_rx.c b/ring_rx.c index 1df7eb3..8ddc44b 100644 --- a/ring_rx.c +++ b/ring_rx.c @@ -91,7 +91,7 @@ static inline void setup_rx_ring_layout_v3(struct ring *ring __maybe_unused) { } -static inline int rx_ring_get_num(struct ring *ring, bool v3 __maybe_unused) +static inline size_t rx_ring_get_num(struct ring *ring, bool v3 __maybe_unused) { return ring->layout.tp_frame_nr; } -- cgit v1.2.3-54-g00ecf