Redfoxmoon / cross / slibtool

Forked from cross/slibtool a year ago
Clone

644014 coding-style meditation.

Authored and Committed by midipix 6 years ago
    coding-style meditation.
    
        
file modified
+3 -3
src/driver/slbt_amain.c CHANGED
@@ -33,7 +33,7 @@ static const char * const slbt_ver_plain[6] = {
33
33
"",""
34
34
};
35
35
36
- static ssize_t slbt_version(int fdout, struct slbt_driver_ctx * dctx)
36
+ static ssize_t slbt_version(struct slbt_driver_ctx * dctx, int fdout)
37
37
{
38
38
const struct slbt_source_version * verinfo;
39
39
const char * const * verclr;
@@ -109,7 +109,7 @@ int slbt_main(int argc, char ** argv, char ** envp,
109
109
sargv[4] = 0;
110
110
111
111
return (slbt_get_driver_ctx(sargv,envp,flags,fdctx,&dctx))
112
- ? SLBT_ERROR : (slbt_version(fdout,dctx) < 0)
112
+ ? SLBT_ERROR : (slbt_version(dctx,fdout) < 0)
113
113
? slbt_exit(dctx,SLBT_ERROR)
114
114
: slbt_exit(dctx,SLBT_OK);
115
115
}
@@ -157,7 +157,7 @@ int slbt_main(int argc, char ** argv, char ** envp,
157
157
: SLBT_ERROR;
158
158
159
159
if (dctx->cctx->drvflags & SLBT_DRIVER_VERSION)
160
- if ((slbt_version(fdout,dctx)) < 0)
160
+ if ((slbt_version(dctx,fdout)) < 0)
161
161
return slbt_exit(dctx,SLBT_ERROR);
162
162
163
163
slbt_perform_driver_actions(dctx);