summaryrefslogtreecommitdiffhomepage
path: root/src/driver
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-08-09 06:06:17 -0400
committermidipix <writeonce@midipix.org>2018-08-09 06:06:17 -0400
commit1cf502784432cb08c930d3629d8dea4898a76352 (patch)
treeaf6f8ba2a2ca7421b54b81ade5f6bd93c67f7195 /src/driver
parent18babb9028ded81ce11027fae06c395bb66731b2 (diff)
downloadntux-1cf502784432cb08c930d3629d8dea4898a76352.tar.bz2
ntux-1cf502784432cb08c930d3629d8dea4898a76352.tar.xz
front-end utility: ntux_main(): remove the redundant argc parameter.
Diffstat (limited to 'src/driver')
-rw-r--r--src/driver/ntux_amain.c4
1 files changed, 2 insertions, 2 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)