summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-06-25 11:42:33 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-06-25 11:42:33 +0000
commitd6afd4b928a3e2875297cd9cba11b570a83d95f9 (patch)
tree99d28340f5fe19723b0c9bb972f0f5ba537d22a8 /src
parentdbe0f6b0e6ca31ff2431eec7824284e8547e9ab9 (diff)
downloadskalibs-d6afd4b928a3e2875297cd9cba11b570a83d95f9.tar.xz
Appease compiler on .sun_family in ipc_recv
Diffstat (limited to 'src')
-rw-r--r--src/libstddjb/ipc_recv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstddjb/ipc_recv.c b/src/libstddjb/ipc_recv.c
index 80806e7..599bad8 100644
--- a/src/libstddjb/ipc_recv.c
+++ b/src/libstddjb/ipc_recv.c
@@ -10,7 +10,7 @@
int ipc_recv (int fd, char *s, unsigned int len, char *path)
{
- struct sockaddr_un sa ;
+ struct sockaddr_un sa = { .sun_family = AF_UNIX } ;
socklen_t total = sizeof sa ;
char tmp[len] ;
register int r ;