diff options
author | midipix <writeonce@midipix.org> | 2018-08-05 05:27:45 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-08-05 05:27:45 -0400 |
commit | 6440142d7087313f1495b4d08ea41ce7234ca7dc (patch) | |
tree | c2b39cc044b208bfb5b8343c40e6b6229e1833de /src/driver | |
parent | 354314deecd4e4b4bb857bb85f1ece8cd921de97 (diff) | |
download | slibtool-6440142d7087313f1495b4d08ea41ce7234ca7dc.tar.bz2 slibtool-6440142d7087313f1495b4d08ea41ce7234ca7dc.tar.xz |
coding-style meditation.
Diffstat (limited to 'src/driver')
-rw-r--r-- | src/driver/slbt_amain.c | 6 |
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); |