aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>2018-06-12 13:26:51 +0200
committerJonathan Neuschäfer <j.neuschaefer@gmx.net>2018-06-12 16:06:50 +0200
commit1462b5cd7753bb2cd9895ce7317e080c71e3990b (patch)
tree6eedaf684bdeb07f8cd2770d4d21d80c97aecb46 /src
parentmpmc_ptr_ring: Include all necessary headers (diff)
downloadwireguard-monolithic-historical-1462b5cd7753bb2cd9895ce7317e080c71e3990b.tar.xz
wireguard-monolithic-historical-1462b5cd7753bb2cd9895ce7317e080c71e3990b.zip
selftest/mpmc_ring: Remove const qualifier from mpmc_ptr_ring_produce argument
mpmc_ptr_ring_produce takes a void*. This fixes the following warning: net/wireguard/selftest/mpmc_ring.h: In function ‘producer_function’: net/wireguard/selftest/mpmc_ring.h:43:38: warning: passing argument 2 of ‘mpmc_ptr_ring_produce’ disc] while (mpmc_ptr_ring_produce(ring, (const void *) count)) ^
Diffstat (limited to 'src')
-rw-r--r--src/selftest/mpmc_ring.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/selftest/mpmc_ring.h b/src/selftest/mpmc_ring.h
index 97b6c1e..41ea9f9 100644
--- a/src/selftest/mpmc_ring.h
+++ b/src/selftest/mpmc_ring.h
@@ -40,7 +40,7 @@ static void producer_function(struct work_struct *work)
uintptr_t count = (td->thread_num * PER_PRODUCER) + 1;
for (; count <= (td->thread_num + 1) * PER_PRODUCER; ++count) {
- while (mpmc_ptr_ring_produce(ring, (const void *) count))
+ while (mpmc_ptr_ring_produce(ring, (void *) count))
schedule();
}
}