mirror of
https://github.com/pygos/init.git
synced 2024-11-22 11:19:45 +01:00
Fix warnings from gcc 8.3 + musl build
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
This commit is contained in:
parent
e21840cfce
commit
a6c059203b
2 changed files with 2 additions and 1 deletions
|
@ -51,7 +51,7 @@ retry:
|
||||||
memset(&rq, 0, sizeof(rq));
|
memset(&rq, 0, sizeof(rq));
|
||||||
addrlen = sizeof(addr);
|
addrlen = sizeof(addr);
|
||||||
ret = recvfrom(sockfd, &rq, sizeof(rq), MSG_DONTWAIT | MSG_TRUNC,
|
ret = recvfrom(sockfd, &rq, sizeof(rq), MSG_DONTWAIT | MSG_TRUNC,
|
||||||
&addr, &addrlen);
|
(struct sockaddr *)&addr, &addrlen);
|
||||||
|
|
||||||
if (ret < 0 && errno == EINTR)
|
if (ret < 0 && errno == EINTR)
|
||||||
goto retry;
|
goto retry;
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/un.h>
|
#include <sys/un.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "initsock.h"
|
#include "initsock.h"
|
||||||
|
|
Loading…
Reference in a new issue