summaryrefslogtreecommitdiffhomepage
path: root/src/driver/pe_amain.c
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-08-09 05:56:15 -0400
committermidipix <writeonce@midipix.org>2018-08-09 05:57:12 -0400
commite1a7721fe04ace25388a3438a0d943bb183245bc (patch)
treef4993798163a1e0396af553b42dcecddbe9aebc5 /src/driver/pe_amain.c
parentdb3db23bbfa09ad13c5e1741c9f961b1ae98383a (diff)
downloadperk-e1a7721fe0.tar.bz2
perk-e1a7721fe0.tar.xz
front-end utility: pe_main(): remove the redundant argc parameter.
Diffstat (limited to 'src/driver/pe_amain.c')
-rw-r--r--src/driver/pe_amain.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/driver/pe_amain.c b/src/driver/pe_amain.c
index 585d50a..50d18ac 100644
--- a/src/driver/pe_amain.c
+++ b/src/driver/pe_amain.c
@@ -83,7 +83,7 @@ static int pe_exit(struct pe_driver_ctx * dctx, int ret)
return ret;
}
-int pe_main(int argc, char ** argv, char ** envp, const struct pe_fd_ctx * fdctx)
+int pe_main(char ** argv, char ** envp, const struct pe_fd_ctx * fdctx)
{
int ret;
int fdout;
@@ -97,7 +97,7 @@ int pe_main(int argc, char ** argv, char ** envp, const struct pe_fd_ctx * fdctx
if ((ret = pe_get_driver_ctx(argv,envp,flags,fdctx,&dctx)))
return (ret == PERK_USAGE)
- ? !--argc
+ ? !argv || !argv[0] || !argv[1]
: PERK_ERROR;
if (dctx->cctx->drvflags & PERK_DRIVER_VERSION)