From 69302dc003c0e55dc9b5ce67b9bb3f2ad31d5284 Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 9 Aug 2018 05:25:51 -0400 Subject: front-end utility: sfrt_main(): remove the redundant argc parameter. --- src/driver/sfrt_amain.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/driver') diff --git a/src/driver/sfrt_amain.c b/src/driver/sfrt_amain.c index 60ad615..075d9f8 100644 --- a/src/driver/sfrt_amain.c +++ b/src/driver/sfrt_amain.c @@ -61,7 +61,7 @@ static int sfrt_exit(struct sfrt_driver_ctx * dctx, int ret) return ret; } -int sfrt_main(int argc, char ** argv, char ** envp, const struct sfrt_fd_ctx * fdctx) +int sfrt_main(char ** argv, char ** envp, const struct sfrt_fd_ctx * fdctx) { int ret; int fdout; @@ -75,7 +75,7 @@ int sfrt_main(int argc, char ** argv, char ** envp, const struct sfrt_fd_ctx * f if ((ret = sfrt_get_driver_ctx(argv,envp,flags,fdctx,&dctx))) return (ret == SFRT_USAGE) - ? !--argc + ? !argv || !argv[0] || !argv[1] : SFRT_ERROR; if (dctx->cctx->drvflags & SFRT_DRIVER_VERSION) -- cgit v1.2.3