summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-08-05 01:01:36 -0400
committermidipix <writeonce@midipix.org>2018-08-05 01:01:36 -0400
commitb5540e9d03beb77628e06d171318485b6a28fa68 (patch)
tree350d6bff437000b55c997fa51e3e8ee846859906
parent23a7cebeb41463fbfc3c068b9b9981e892906d88 (diff)
downloadmdso-b5540e9d03beb77628e06d171318485b6a28fa68.tar.bz2
mdso-b5540e9d03beb77628e06d171318485b6a28fa68.tar.xz
coding-style meditation.
-rw-r--r--src/driver/mdso_amain.c4
-rw-r--r--src/driver/mdso_unit_ctx.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/driver/mdso_amain.c b/src/driver/mdso_amain.c
index ee02363..a3265cc 100644
--- a/src/driver/mdso_amain.c
+++ b/src/driver/mdso_amain.c
@@ -33,7 +33,7 @@ static const char * const mdso_ver_plain[6] = {
"",""
};
-static ssize_t mdso_version(int fdout, struct mdso_driver_ctx * dctx)
+static ssize_t mdso_version(struct mdso_driver_ctx * dctx, int fdout)
{
const struct mdso_source_version * verinfo;
const char * const * verclr;
@@ -82,7 +82,7 @@ int mdso_main(int argc, char ** argv, char ** envp, const struct mdso_fd_ctx * f
: MDSO_ERROR;
if (dctx->cctx->drvflags & MDSO_DRIVER_VERSION)
- if ((mdso_version(fdout,dctx)) < 0)
+ if ((mdso_version(dctx,fdout)) < 0)
return mdso_exit(dctx,MDSO_ERROR);
if (dctx->cctx->implib)
diff --git a/src/driver/mdso_unit_ctx.c b/src/driver/mdso_unit_ctx.c
index 97c5041..c10a3ca 100644
--- a/src/driver/mdso_unit_ctx.c
+++ b/src/driver/mdso_unit_ctx.c
@@ -61,7 +61,7 @@ static int mdso_stdin_to_tmp(const struct mdso_driver_ctx * dctx)
return -1;
}
- while (1) {
+ for (;;) {
ret = read(0,buf,sizeof(buf)-1);
while ((ret < 0) && (errno == EINTR))