summaryrefslogtreecommitdiffhomepage
path: root/src/driver
diff options
context:
space:
mode:
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)