From a7dc81851ba2af566ce6d99579375f9b073587af Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 11 May 2021 20:31:51 +0000 Subject: slbt_exec_install_entry(): coding-style meditation. --- src/logic/slbt_exec_install.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src') 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); -- cgit v1.2.3