From 16013c560e189bd0c4fb58e038c0f449542dba7a Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 16 Jul 2017 11:19:51 +0000 Subject: Add egidingroups sysdeps, change fd_close() to void and saving errno, propagate changes --- src/libstddjb/socket_internal.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/libstddjb/socket_internal.c') diff --git a/src/libstddjb/socket_internal.c b/src/libstddjb/socket_internal.c index f8b0a1f..848b156 100644 --- a/src/libstddjb/socket_internal.c +++ b/src/libstddjb/socket_internal.c @@ -3,7 +3,6 @@ #include #include #include -#include #include #ifdef SKALIBS_HASACCEPT4 @@ -22,9 +21,7 @@ int socket_internal (int domain, int type, int protocol, unsigned int flags) if ((((flags & DJBUNIX_FLAG_NB) ? ndelay_on(s) : ndelay_off(s)) < 0) || (((flags & DJBUNIX_FLAG_COE) ? coe(s) : uncoe(s)) < 0)) { - int e = errno ; fd_close(s) ; - errno = e ; return -1 ; } return s ; -- cgit v1.2.3