community/bolt: fix build with gcc 14
While tests are currently disabled, meson.build
still includes test files when building and bolt-test.c
failed to build. The MR patches the test file so the rest of the build could proceed.
The error was:
../tests/bolt-test.c: In function 'notify_socket_new':
../tests/bolt-test.c:131:17: error: passing argument 2 of 'bind' from incompatible pointer type [-Wincompatible-pointer-types]
131 | r = bind (fd, &sau, socklen);
| ^~~~
| |
| struct sockaddr_un *
In file included from /usr/include/fortify/sys/socket.h:23,
from ../tests/bolt-test.c:37:
/usr/include/sys/socket.h:385:16: note: expected 'const struct sockaddr *' but argument is of type 'struct sockaddr_un *'
385 | int bind (int, const struct sockaddr *, socklen_t);
| ^~~~~~~~~~~~~~~~~~~~~~~