From 04875e8ea51a18dd1466ed7cb5d425c158db4337 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Tue, 21 Apr 2015 17:57:10 +0200 Subject: ring: Make ifname paramter to ring_size() const ifname not changed inside the function, so make it const. Signed-off-by: Tobias Klauser --- ring.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ring.h') diff --git a/ring.h b/ring.h index 823e49a..e9f1b18 100644 --- a/ring.h +++ b/ring.h @@ -79,7 +79,7 @@ static inline void next_rnd_slot(unsigned int *it, struct ring *ring) *it = rand() % ring->layout.tp_frame_nr; } -static inline size_t ring_size(char *ifname, size_t size) +static inline size_t ring_size(const char *ifname, size_t size) { if (size > 0) return size; -- cgit v1.2.3-54-g00ecf