summaryrefslogtreecommitdiff
path: root/src/libstddjb/openslurpclose.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/openslurpclose.c')
-rw-r--r--src/libstddjb/openslurpclose.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/libstddjb/openslurpclose.c b/src/libstddjb/openslurpclose.c
index 8485413..e6b0570 100644
--- a/src/libstddjb/openslurpclose.c
+++ b/src/libstddjb/openslurpclose.c
@@ -1,14 +1,8 @@
/* ISC license. */
-#include <skalibs/stralloc.h>
#include <skalibs/djbunix.h>
int openslurpclose (stralloc *sa, char const *fn)
{
- int r ;
- int fd = openbc_read(fn) ;
- if (fd == -1) return 0 ;
- r = slurp(sa, fd) ;
- fd_close(fd) ;
- return r ;
+ return openslurpnclose(fn, sa, 0) ;
}