summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-08-05 05:27:45 -0400
committermidipix <writeonce@midipix.org>2018-08-05 05:27:45 -0400
commit6440142d7087313f1495b4d08ea41ce7234ca7dc (patch)
treec2b39cc044b208bfb5b8343c40e6b6229e1833de
parent354314deecd4e4b4bb857bb85f1ece8cd921de97 (diff)
downloadslibtool-6440142d7087313f1495b4d08ea41ce7234ca7dc.tar.bz2
slibtool-6440142d7087313f1495b4d08ea41ce7234ca7dc.tar.xz
coding-style meditation.
-rw-r--r--src/driver/slbt_amain.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/driver/slbt_amain.c b/src/driver/slbt_amain.c
index e984e60..a331b3b 100644
--- a/src/driver/slbt_amain.c
+++ b/src/driver/slbt_amain.c
@@ -33,7 +33,7 @@ static const char * const slbt_ver_plain[6] = {
"",""
};
-static ssize_t slbt_version(int fdout, struct slbt_driver_ctx * dctx)
+static ssize_t slbt_version(struct slbt_driver_ctx * dctx, int fdout)
{
const struct slbt_source_version * verinfo;
const char * const * verclr;
@@ -109,7 +109,7 @@ int slbt_main(int argc, char ** argv, char ** envp,
sargv[4] = 0;
return (slbt_get_driver_ctx(sargv,envp,flags,fdctx,&dctx))
- ? SLBT_ERROR : (slbt_version(fdout,dctx) < 0)
+ ? SLBT_ERROR : (slbt_version(dctx,fdout) < 0)
? slbt_exit(dctx,SLBT_ERROR)
: slbt_exit(dctx,SLBT_OK);
}
@@ -157,7 +157,7 @@ int slbt_main(int argc, char ** argv, char ** envp,
: SLBT_ERROR;
if (dctx->cctx->drvflags & SLBT_DRIVER_VERSION)
- if ((slbt_version(fdout,dctx)) < 0)
+ if ((slbt_version(dctx,fdout)) < 0)
return slbt_exit(dctx,SLBT_ERROR);
slbt_perform_driver_actions(dctx);