respondd: use cast to prevent warning in sendto()

This commit is contained in:
lemoer 2016-12-01 11:03:09 +01:00
parent ca0816bfb7
commit b0e80bfde7
1 changed files with 1 additions and 1 deletions

View File

@ -418,7 +418,7 @@ void send_response(int sock, struct json_object *result, bool compress,
}
if (output) {
if (sendto(sock, output, output_bytes, 0, addr, sizeof(struct sockaddr_in6)) < 0)
if (sendto(sock, output, output_bytes, 0, (struct sockaddr *) addr, sizeof(*addr)) < 0)
perror("sendto failed");
}