From ee9cbeee6a3df6f471ed667d8bc9680a242105d8 Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 8 Feb 2024 01:47:50 +0000 Subject: slbt_archive_import_mri(): whitespace meditation. --- src/fallback/slbt_archive_import_mri.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src') 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); -- cgit v1.2.3