From 6440142d7087313f1495b4d08ea41ce7234ca7dc Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 5 Aug 2018 05:27:45 -0400 Subject: coding-style meditation. --- src/driver/slbt_amain.c | 6 +++--- 1 file 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); -- cgit v1.2.3