From 5e1c21de3bc7cedf1a2673442fcf74f9f6c6eaca Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 9 Apr 2016 19:59:20 -0400 Subject: internal: slbt_create_symlink(): fix step output for link mode. --- src/internal/slibtool_symlink_impl.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/internal/slibtool_symlink_impl.c') 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 */ -- cgit v1.2.3