0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 18:22:50 +01:00

librb: commio: squelch setsockopt(3) warnings

This commit is contained in:
William Pitcock 2016-03-20 04:18:42 -05:00
parent fe277230f9
commit d24856d228

View file

@ -703,7 +703,7 @@ rb_socket(int family, int sock_type, int proto, const char *note)
if(family == AF_INET6)
{
int off = 1;
if(setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY, &off, sizeof(off)) == -1)
if(setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY, (void *) &off, sizeof(off)) == -1)
{
rb_lib_log("rb_socket: Could not set IPV6_V6ONLY option to 1 on FD %d: %s",
fd, strerror(errno));