From b0e80bfde7be16686e7f8536130c00a75a440992 Mon Sep 17 00:00:00 2001 From: lemoer Date: Thu, 1 Dec 2016 11:03:09 +0100 Subject: [PATCH] respondd: use cast to prevent warning in sendto() --- net/respondd/src/respondd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/respondd/src/respondd.c b/net/respondd/src/respondd.c index 1bc6bf4..f2dd8dc 100644 --- a/net/respondd/src/respondd.c +++ b/net/respondd/src/respondd.c @@ -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"); }