diff options
-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" |