aboutsummaryrefslogtreecommitdiff
path: root/initd
diff options
context:
space:
mode:
authorDavid Oberhollenzer <goliath@infraroot.at>2019-03-20 20:43:41 +0100
committerDavid Oberhollenzer <goliath@infraroot.at>2019-03-20 20:43:41 +0100
commita6c059203b51ad801484b125ec4e45296b3f1aea (patch)
tree6330463bc90c92180298a7326a352e51658b36df /initd
parente21840cfced42425b9e742fbd199a19369d0b614 (diff)
Fix warnings from gcc 8.3 + musl build
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
Diffstat (limited to 'initd')
-rw-r--r--initd/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/initd/main.c b/initd/main.c
index 9432042..3a824e4 100644
--- a/initd/main.c
+++ b/initd/main.c
@@ -51,7 +51,7 @@ retry:
memset(&rq, 0, sizeof(rq));
addrlen = sizeof(addr);
ret = recvfrom(sockfd, &rq, sizeof(rq), MSG_DONTWAIT | MSG_TRUNC,
- &addr, &addrlen);
+ (struct sockaddr *)&addr, &addrlen);
if (ret < 0 && errno == EINTR)
goto retry;