summaryrefslogtreecommitdiff
path: root/src/logic/slbt_exec_link.c
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2017-08-07 03:56:27 -0400
committermidipix <writeonce@midipix.org>2017-08-07 03:56:27 -0400
commit017c4765c5e19669631a0cb6d4c9ca1926b6dcc7 (patch)
tree892183ece52c17da28b73a435313da1543e43db9 /src/logic/slbt_exec_link.c
parentd1c2e6475bca194018630e4734ce9566017d0313 (diff)
downloadslibtool-017c4765c5e19669631a0cb6d4c9ca1926b6dcc7.tar.bz2
slibtool-017c4765c5e19669631a0cb6d4c9ca1926b6dcc7.tar.xz
error trace: remove and fix inadvertent calls to strerror(3).
Diffstat (limited to 'src/logic/slbt_exec_link.c')
-rw-r--r--src/logic/slbt_exec_link.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/logic/slbt_exec_link.c b/src/logic/slbt_exec_link.c
index 0d225c4..38aa5e6 100644
--- a/src/logic/slbt_exec_link.c
+++ b/src/logic/slbt_exec_link.c
@@ -495,10 +495,7 @@ static int slbt_exec_link_remove_file(
if (!(unlink(target)) || (errno == ENOENT))
return 0;
- if (!(dctx->cctx->drvflags & SLBT_DRIVER_SILENT))
- strerror(errno);
-
- return -1;
+ return SLBT_SYSTEM_ERROR(dctx);
}
static int slbt_exec_link_create_dep_file(