summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2015-04-21 17:57:10 +0200
committerTobias Klauser <tklauser@distanz.ch>2015-04-21 17:58:29 +0200
commit04875e8ea51a18dd1466ed7cb5d425c158db4337 (patch)
tree22ea9ff080c8aa65d8db18757662e50d03650d9a
parent7aebca65f569ceb5fd8a12bef5fa6b58f277683d (diff)
ring: Make ifname paramter to ring_size() const
ifname not changed inside the function, so make it const. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rw-r--r--ring.h2
1 files changed, 1 insertions, 1 deletions
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;