summaryrefslogtreecommitdiff
path: root/ring.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2016-04-27 09:45:21 +0200
committerTobias Klauser <tklauser@distanz.ch>2016-04-27 09:45:21 +0200
commitab19a9757695b6a90d73bb3782584e5995195b24 (patch)
treec8a1187ef1b1d5fe60c3826a416d86db11a31b27 /ring.h
parentf321e02ac398ae92a5e5431c8ca915dd757d2986 (diff)
ring: Remove unused parameter sock from setup_ring_layout_generic()
setup_ring_layout_generic() takes an "int sock" parameter but never uses it. Remove it to prevent -Wunused-parameter warnings. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'ring.h')
-rw-r--r--ring.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ring.h b/ring.h
index 4153b9c..971e8de 100644
--- a/ring.h
+++ b/ring.h
@@ -205,7 +205,7 @@ static inline int get_sockopt_tpacket(int sock)
return val;
}
-extern void setup_ring_layout_generic(int sock, struct ring *ring, size_t size,
+extern void setup_ring_layout_generic(struct ring *ring, size_t size,
bool jumbo_support);
extern void mmap_ring_generic(int sock, struct ring *ring);
extern void alloc_ring_frames_generic(struct ring *ring, size_t num, size_t size);