From 5e1c21de3bc7cedf1a2673442fcf74f9f6c6eaca Mon Sep 17 00:00:00 2001 From: midipix Date: Apr 09 2016 23:59:20 +0000 Subject: internal: slbt_create_symlink(): fix step output for link mode. --- 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 */