summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-02-08 01:47:50 +0000
committermidipix <writeonce@midipix.org>2024-02-08 01:47:50 +0000
commitee9cbeee6a3df6f471ed667d8bc9680a242105d8 (patch)
treec388160e8b206ac021ff9da5d48788eefc9660fc /src
parente094ecccca59ebcbfe5f588ae9b67ca364101359 (diff)
downloadslibtool-ee9cbeee6a3df6f471ed667d8bc9680a242105d8.tar.bz2
slibtool-ee9cbeee6a3df6f471ed667d8bc9680a242105d8.tar.xz
slbt_archive_import_mri(): whitespace meditation.
Diffstat (limited to 'src')
-rw-r--r--src/fallback/slbt_archive_import_mri.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/fallback/slbt_archive_import_mri.c b/src/fallback/slbt_archive_import_mri.c
index fb880c2..b2e8afd 100644
--- a/src/fallback/slbt_archive_import_mri.c
+++ b/src/fallback/slbt_archive_import_mri.c
@@ -35,10 +35,12 @@ static char * slbt_mri_argument(
if ((!(strchr(arg,'+'))) && (!(strchr(arg,'-'))))
return arg;
- if (arg[0] == '/')
+ if (arg[0] == '/') {
target = arg;
- else {
- if (slbt_realpath(fdat,".",O_DIRECTORY,mricwd,sizeof(mricwd)))
+ } else {
+ if (slbt_realpath(
+ fdat,".",O_DIRECTORY,
+ mricwd,sizeof(mricwd)) < 0)
return 0;
if ((size_t)snprintf(dstbuf,sizeof(dstbuf),"%s/%s",
@@ -103,8 +105,7 @@ int slbt_archive_import_mri(
/* program */
if ((size_t)snprintf(program,sizeof(program),
- "%s",
- dctx->cctx->host.ar)
+ "%s",dctx->cctx->host.ar)
>= sizeof(program))
return SLBT_BUFFER_ERROR(dctx);