]> git.ipfire.org Git - thirdparty/wireguard-tools.git/commit
show: apply const to right part of pointer
authorJason A. Donenfeld <Jason@zx2c4.com>
Mon, 31 Oct 2022 14:38:58 +0000 (15:38 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Mon, 31 Oct 2022 14:39:30 +0000 (15:39 +0100)
commitca2e89ff21794b1853f628b8d5cb0f91eb140461
tree4015574da7c48175ed6affd15b3ff765591b037e
parent7b2ae7aa2f52fbac65874a641cbfbb0182d0ba46
show: apply const to right part of pointer

Without this -Wcast-qual complains:

show.c:30:43: warning: cast from 'const void *' to 'const void **' drops const qualifier [-Wcast-qual]
        const struct wgpeer *a = *(const void **)first, *b = *(const void **)second;
                                                 ^
show.c:30:71: warning: cast from 'const void *' to 'const void **' drops const qualifier [-Wcast-qual]
        const struct wgpeer *a = *(const void **)first, *b = *(const void **)second;

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
src/show.c