diff options
Diffstat (limited to 'src/libstddjb/openreadfileclose.c')
-rw-r--r-- | src/libstddjb/openreadfileclose.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/libstddjb/openreadfileclose.c b/src/libstddjb/openreadfileclose.c index b636c89..baed267 100644 --- a/src/libstddjb/openreadfileclose.c +++ b/src/libstddjb/openreadfileclose.c @@ -1,7 +1,6 @@ /* ISC license. */ #include <sys/stat.h> -#include <errno.h> #include <skalibs/allreadwrite.h> #include <skalibs/stralloc.h> #include <skalibs/djbunix.h> @@ -27,10 +26,6 @@ int openreadfileclose (char const *file, stralloc *sa, size_t limit) return 1 ; err: - { - int e = errno ; - fd_close(fd) ; - errno = e ; - } + fd_close(fd) ; return 0 ; } |