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/openreadfileclose.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/libstddjb/openreadfileclose.c') 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 -#include #include #include #include @@ -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 ; } -- cgit v1.2.3