summaryrefslogtreecommitdiff
path: root/src/conn-tools
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2018-07-21 16:42:59 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2018-07-21 16:42:59 +0000
commit6305fe2580781df44e93c1ec8ed380896680960d (patch)
treeefb5c2c3ebe26118fed1e10d80874784060893f3 /src/conn-tools
parent3ea0b28892de170c5de281529613531dfa15eaa8 (diff)
downloads6-6305fe2580781df44e93c1ec8ed380896680960d.tar.xz
Adapt to skalibs-2.7.0.0
Diffstat (limited to 'src/conn-tools')
-rw-r--r--src/conn-tools/s6-accessrules-cdb-from-fs.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/conn-tools/s6-accessrules-cdb-from-fs.c b/src/conn-tools/s6-accessrules-cdb-from-fs.c
index 9efacdb..ab61451 100644
--- a/src/conn-tools/s6-accessrules-cdb-from-fs.c
+++ b/src/conn-tools/s6-accessrules-cdb-from-fs.c
@@ -5,6 +5,7 @@
#include <errno.h>
#include <stdlib.h>
#include <stdio.h>
+#include <skalibs/posixplz.h>
#include <skalibs/types.h>
#include <skalibs/cdb_make.h>
#include <skalibs/strerr2.h>
@@ -20,9 +21,7 @@ static stralloc tmp = STRALLOC_ZERO ;
static void cleanup (void)
{
- int e = errno ;
- unlink(tmp.s) ;
- errno = e ;
+ unlink_void(tmp.s) ;
}
static void dienomem (void)