summaryrefslogtreecommitdiff
path: root/src/libunixonacid/openslurpclose_at.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libunixonacid/openslurpclose_at.c')
-rw-r--r--src/libunixonacid/openslurpclose_at.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/libunixonacid/openslurpclose_at.c b/src/libunixonacid/openslurpclose_at.c
index f4e0615..bf6d3ab 100644
--- a/src/libunixonacid/openslurpclose_at.c
+++ b/src/libunixonacid/openslurpclose_at.c
@@ -1,6 +1,5 @@
/* ISC license. */
-#include <errno.h>
#include <skalibs/djbunix.h>
#include <skalibs/unix-transactional.h>
@@ -10,9 +9,7 @@ int openslurpclose_at (int dirfd, char const *fn, stralloc *sa)
if (fd < 0) return 0 ;
if (!slurp(sa, fd))
{
- int e = errno ;
fd_close(fd) ;
- errno = e ;
return 0 ;
}
fd_close(fd) ;