summaryrefslogtreecommitdiff
path: root/src
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
parentd1c2e6475bca194018630e4734ce9566017d0313 (diff)
downloadslibtool-017c4765c5e19669631a0cb6d4c9ca1926b6dcc7.tar.bz2
slibtool-017c4765c5e19669631a0cb6d4c9ca1926b6dcc7.tar.xz
error trace: remove and fix inadvertent calls to strerror(3).
Diffstat (limited to 'src')
-rw-r--r--src/logic/slbt_exec_compile.c3
-rw-r--r--src/logic/slbt_exec_link.c5
2 files changed, 1 insertions, 7 deletions
diff --git a/src/logic/slbt_exec_compile.c b/src/logic/slbt_exec_compile.c
index 5e337bb..2612f4a 100644
--- a/src/logic/slbt_exec_compile.c
+++ b/src/logic/slbt_exec_compile.c
@@ -27,9 +27,6 @@ static int slbt_exec_compile_remove_file(
if (!(unlink(target)) || (errno == ENOENT))
return 0;
- if (!(dctx->cctx->drvflags & SLBT_DRIVER_SILENT))
- strerror(errno);
-
return SLBT_SYSTEM_ERROR(dctx);
}
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(