summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-04-09 19:59:20 -0400
committermidipix <writeonce@midipix.org>2016-04-09 19:59:20 -0400
commit5e1c21de3bc7cedf1a2673442fcf74f9f6c6eaca (patch)
tree195819c67d4c31ec4442d80c7e05472418e68fde
parent9aa1f4b19f4d7a635c744f4241ec64a7745bd83a (diff)
downloadslibtool-5e1c21de3bc7cedf1a2673442fcf74f9f6c6eaca.tar.bz2
slibtool-5e1c21de3bc7cedf1a2673442fcf74f9f6c6eaca.tar.xz
internal: slbt_create_symlink(): fix step output for link mode.
-rw-r--r--src/internal/slibtool_symlink_impl.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/internal/slibtool_symlink_impl.c b/src/internal/slibtool_symlink_impl.c
index 66788fe..50b2387 100644
--- a/src/internal/slibtool_symlink_impl.c
+++ b/src/internal/slibtool_symlink_impl.c
@@ -51,12 +51,13 @@ int slbt_create_symlink(
/* step output */
if (!(dctx->cctx->drvflags & SLBT_DRIVER_SILENT)) {
- if ((dctx->cctx->mode == SLBT_MODE_LINK)
- && slbt_output_link(dctx,ectx))
- return -1;
-
- else if (slbt_output_install(dctx,ectx))
- return -1;
+ if (dctx->cctx->mode == SLBT_MODE_LINK) {
+ if (slbt_output_link(dctx,ectx))
+ return -1;
+ } else {
+ if (slbt_output_install(dctx,ectx))
+ return -1;
+ }
}
/* create symlink */