diff options
author | David Oberhollenzer <goliath@infraroot.at> | 2019-03-20 20:43:41 +0100 |
---|---|---|
committer | David Oberhollenzer <goliath@infraroot.at> | 2019-03-20 20:43:41 +0100 |
commit | a6c059203b51ad801484b125ec4e45296b3f1aea (patch) | |
tree | 6330463bc90c92180298a7326a352e51658b36df | |
parent | e21840cfced42425b9e742fbd199a19369d0b614 (diff) |
Fix warnings from gcc 8.3 + musl build
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
-rw-r--r-- | initd/main.c | 2 | ||||
-rw-r--r-- | lib/init/init_socket_create.c | 1 |
2 files changed, 2 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; diff --git a/lib/init/init_socket_create.c b/lib/init/init_socket_create.c index a5a0972..82a528c 100644 --- a/lib/init/init_socket_create.c +++ b/lib/init/init_socket_create.c @@ -2,6 +2,7 @@ #include <sys/socket.h> #include <sys/un.h> #include <unistd.h> +#include <string.h> #include <stdio.h> #include "initsock.h" |