Fix: Silence warning by casting *sin_addr to *sockaddr
[lttng-tools.git] / src / common / sessiond-comm / inet6.c
index db5cda2e1560a176c682002923417902b941d172..a29adad4214c941d3287c6dc7f6851559c2d8af5 100644 (file)
@@ -101,7 +101,7 @@ int lttcomm_bind_inet6_sock(struct lttcomm_sock *sock)
 {
        int ret;
 
-       ret = bind(sock->fd, &sock->sockaddr.addr.sin6,
+       ret = bind(sock->fd, (const struct sockaddr *) &sock->sockaddr.addr.sin6,
                        sizeof(sock->sockaddr.addr.sin6));
        if (ret < 0) {
                PERROR("bind inet6");
This page took 0.031265 seconds and 4 git commands to generate.