summaryrefslogtreecommitdiff
path: root/src/libstddjb/socketpair_internal.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/socketpair_internal.c')
-rw-r--r--src/libstddjb/socketpair_internal.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/libstddjb/socketpair_internal.c b/src/libstddjb/socketpair_internal.c
index a1e64c5..a31228f 100644
--- a/src/libstddjb/socketpair_internal.c
+++ b/src/libstddjb/socketpair_internal.c
@@ -44,12 +44,8 @@ int socketpair_internal (int domain, int type, int protocol, unsigned int flags,
return 0 ;
err:
- {
- int e = errno ;
- fd_close(fd[1]) ;
- fd_close(fd[0]) ;
- errno = e ;
- }
+ fd_close(fd[1]) ;
+ fd_close(fd[0]) ;
return -1 ;
}