summaryrefslogtreecommitdiff
path: root/src/logic
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-05-11 20:31:51 +0000
committermidipix <writeonce@midipix.org>2021-05-11 21:02:23 +0000
commita7dc81851ba2af566ce6d99579375f9b073587af (patch)
tree025ae2261355791a9368e55756777ef3698285f5 /src/logic
parentadb290e13315a7f5bd8f939ed471a07727e23e19 (diff)
downloadslibtool-a7dc81851ba2af566ce6d99579375f9b073587af.tar.bz2
slibtool-a7dc81851ba2af566ce6d99579375f9b073587af.tar.xz
slbt_exec_install_entry(): coding-style meditation.
Diffstat (limited to 'src/logic')
-rw-r--r--src/logic/slbt_exec_install.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/logic/slbt_exec_install.c b/src/logic/slbt_exec_install.c
index 727a38b..072c301 100644
--- a/src/logic/slbt_exec_install.c
+++ b/src/logic/slbt_exec_install.c
@@ -360,9 +360,7 @@ static int slbt_exec_install_entry(
fdcwd = slbt_driver_fdcwd(dctx);
/* fexe */
- fexe = fstatat(fdcwd,slnkname,&st,0)
- ? false
- : true;
+ fexe = !fstatat(fdcwd,slnkname,&st,0);
/* argument suffix */
dot = strrchr(entry->arg,'.');
@@ -380,8 +378,9 @@ static int slbt_exec_install_entry(
if ((slash = strrchr(lasource,'/'))) {
*slash++ = 0;
sprintf(srcfile,"%s/.libs/%s",lasource,slash);
- } else
+ } else {
sprintf(srcfile,".libs/%s",lasource);
+ }
/* -shrext, dsosuffix */
strcpy(sobuf,dctx->cctx->settings.dsosuffix);