blob: 24037ec0dbef69e4c9c7e0fb880ae36d2146a6e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
--- a/libndp/libndp.c
+++ b/libndp/libndp.c
@@ -209,7 +209,7 @@ static int mysendto6(int sockfd, void *b
memcpy(&sin6.sin6_addr, addr, sizeof(sin6.sin6_addr));
sin6.sin6_scope_id = ifindex;
resend:
- ret = sendto(sockfd, buf, buflen, flags, &sin6, sizeof(sin6));
+ ret = sendto(sockfd, buf, buflen, flags, (const struct sockaddr *)&sin6, sizeof(sin6));
if (ret == -1) {
switch(errno) {
case EINTR:
|