diff options
author | midipix <writeonce@midipix.org> | 2018-08-09 06:06:17 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-08-09 06:06:17 -0400 |
commit | 1cf502784432cb08c930d3629d8dea4898a76352 (patch) | |
tree | af6f8ba2a2ca7421b54b81ade5f6bd93c67f7195 /src | |
parent | 18babb9028ded81ce11027fae06c395bb66731b2 (diff) | |
download | ntux-1cf502784432cb08c930d3629d8dea4898a76352.tar.bz2 ntux-1cf502784432cb08c930d3629d8dea4898a76352.tar.xz |
front-end utility: ntux_main(): remove the redundant argc parameter.
Diffstat (limited to 'src')
-rw-r--r-- | src/driver/ntux_amain.c | 4 | ||||
-rw-r--r-- | src/ntux.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/driver/ntux_amain.c b/src/driver/ntux_amain.c index 22a1403..0a24125 100644 --- a/src/driver/ntux_amain.c +++ b/src/driver/ntux_amain.c @@ -64,7 +64,7 @@ static int ntux_exit(struct ntux_driver_ctx * dctx, int ret) return ret; } -int ntux_main(int argc, char ** argv, char ** envp, const struct ntux_fd_ctx * fdctx) +int ntux_main(char ** argv, char ** envp, const struct ntux_fd_ctx * fdctx) { int ret; int fdout; @@ -77,7 +77,7 @@ int ntux_main(int argc, char ** argv, char ** envp, const struct ntux_fd_ctx * f if ((ret = ntux_get_driver_ctx(argv,envp,flags,fdctx,&dctx))) return (ret == NTUX_USAGE) - ? !--argc + ? !argv || !argv[0] || !argv[1] : NTUX_ERROR; if (dctx->cctx->drvflags & NTUX_DRIVER_VERSION) @@ -26,7 +26,7 @@ int ntux_entry_routine( /* invoke main */ __sys_exit_group( - ntux_main(argc,argv,envp,0)); + ntux_main(argv,envp,0)); return NT_STATUS_INTERNAL_ERROR; } |