summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-08-09 06:09:04 -0400
committermidipix <writeonce@midipix.org>2018-08-09 06:09:04 -0400
commit85cfaaf90eed065df038384a2874f60cce395e47 (patch)
treeae0b6cce25a76e99ae1cf4be9ad4ba6439a91de9 /src
parent4a448ba34fa7ff92bcf51ec643dd96d6097f7c8b (diff)
downloadmdso-85cfaaf90eed065df038384a2874f60cce395e47.tar.bz2
mdso-85cfaaf90eed065df038384a2874f60cce395e47.tar.xz
front-end utility: mdso_main(): remove the redundant argc parameter.
Diffstat (limited to 'src')
-rw-r--r--src/driver/mdso_amain.c4
-rw-r--r--src/mdso.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/driver/mdso_amain.c b/src/driver/mdso_amain.c
index a3265cc..bed201d 100644
--- a/src/driver/mdso_amain.c
+++ b/src/driver/mdso_amain.c
@@ -64,7 +64,7 @@ static int mdso_exit(struct mdso_driver_ctx * dctx, int ret)
return ret;
}
-int mdso_main(int argc, char ** argv, char ** envp, const struct mdso_fd_ctx * fdctx)
+int mdso_main(char ** argv, char ** envp, const struct mdso_fd_ctx * fdctx)
{
int ret;
int fdout;
@@ -78,7 +78,7 @@ int mdso_main(int argc, char ** argv, char ** envp, const struct mdso_fd_ctx * f
if ((ret = mdso_get_driver_ctx(argv,envp,flags,fdctx,&dctx)))
return (ret == MDSO_USAGE)
- ? !--argc
+ ? !argv || !argv[0] || !argv[1]
: MDSO_ERROR;
if (dctx->cctx->drvflags & MDSO_DRIVER_VERSION)
diff --git a/src/mdso.c b/src/mdso.c
index 423f2ac..3ba66e7 100644
--- a/src/mdso.c
+++ b/src/mdso.c
@@ -8,5 +8,5 @@
int main(int argc, char ** argv, char ** envp)
{
- return mdso_main(argc,argv,envp,0);
+ return mdso_main(argv,envp,0);
}