diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2015-04-21 17:57:10 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2015-04-21 17:58:29 +0200 |
commit | 04875e8ea51a18dd1466ed7cb5d425c158db4337 (patch) | |
tree | 22ea9ff080c8aa65d8db18757662e50d03650d9a | |
parent | 7aebca65f569ceb5fd8a12bef5fa6b58f277683d (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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |