1
0
Fork 0
mirror of https://github.com/pygos/init.git synced 2024-11-05 04:07:10 +01:00

Fix warnings from gcc 8.3 + musl build

Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
This commit is contained in:
David Oberhollenzer 2019-03-20 20:43:41 +01:00
parent e21840cfce
commit a6c059203b
2 changed files with 2 additions and 1 deletions

View file

@ -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;

View file

@ -2,6 +2,7 @@
#include <sys/socket.h>
#include <sys/un.h>
#include <unistd.h>
#include <string.h>
#include <stdio.h>
#include "initsock.h"