summaryrefslogtreecommitdiff
path: root/src/libnsss/nsss_unix_end.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libnsss/nsss_unix_end.c')
-rw-r--r--src/libnsss/nsss_unix_end.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libnsss/nsss_unix_end.c b/src/libnsss/nsss_unix_end.c
new file mode 100644
index 0000000..1d6b867
--- /dev/null
+++ b/src/libnsss/nsss_unix_end.c
@@ -0,0 +1,11 @@
+/* ISC license. */
+
+#include <skalibs/buffer.h>
+#include <skalibs/djbunix.h>
+#include <nsss/nsss-unix.h>
+
+void nsss_unix_end (nsss_unix_t *a)
+{
+ fd_close(buffer_fd(&a->b)) ;
+ a->b.fd = -1 ;
+}