diff options
author | Daniel Borkmann <daniel@iogearbox.net> | 2015-10-29 18:56:11 +0100 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2015-10-29 18:56:11 +0100 |
commit | b1a4a6fa7b233abbca763178095b076d409cce80 (patch) | |
tree | 756254987b4e78c5fe4713dc598de1f420df3070 /ring_rx.c | |
parent | 55274adedcabdc3f1e4d66b2c3b77b1612acf20d (diff) |
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 <daniel@iogearbox.net>
Diffstat (limited to 'ring_rx.c')
-rw-r--r-- | ring_rx.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |