diff options
author | midipix <writeonce@midipix.org> | 2016-04-09 19:59:20 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-04-09 19:59:20 -0400 |
commit | 5e1c21de3bc7cedf1a2673442fcf74f9f6c6eaca (patch) | |
tree | 195819c67d4c31ec4442d80c7e05472418e68fde /src | |
parent | 9aa1f4b19f4d7a635c744f4241ec64a7745bd83a (diff) | |
download | slibtool-5e1c21de3bc7cedf1a2673442fcf74f9f6c6eaca.tar.bz2 slibtool-5e1c21de3bc7cedf1a2673442fcf74f9f6c6eaca.tar.xz |
internal: slbt_create_symlink(): fix step output for link mode.
Diffstat (limited to 'src')
-rw-r--r-- | src/internal/slibtool_symlink_impl.c | 13 |
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 */ |