Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
{
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");
{
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");