From 1cf502784432cb08c930d3629d8dea4898a76352 Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 9 Aug 2018 06:06:17 -0400 Subject: front-end utility: ntux_main(): remove the redundant argc parameter. --- src/driver/ntux_amain.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/driver') 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) -- cgit v1.2.3