Fix: Silence warning by casting *sin_addr to *sockaddr
[lttng-tools.git] / src / common / sessiond-comm / inet.c
index 5727c91199a2cfb3244041444d6cfa374052c276..35ce3b6b5c9ca2a720a509d3d95aa172931a221a 100644 (file)
@@ -103,7 +103,7 @@ int lttcomm_bind_inet_sock(struct lttcomm_sock *sock)
 {
        int ret;
 
-       ret = bind(sock->fd, &sock->sockaddr.addr.sin,
+       ret = bind(sock->fd, (const struct sockaddr *) &sock->sockaddr.addr.sin,
                        sizeof(sock->sockaddr.addr.sin));
        if (ret < 0) {
                PERROR("bind inet");
This page took 0.03677 seconds and 4 git commands to generate.