From d37f22225b4d10b84bbc4f6cee2e26d9f9b80fac Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 19 Aug 2007 13:42:08 +0000 Subject: libbb,crond,lash: fix getopt32 (don't know how it managed to slip through) *: fcntl(fd, F_GETFL) doesn't require third parameter at all. --- miscutils/crond.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'miscutils/crond.c') diff --git a/miscutils/crond.c b/miscutils/crond.c index 117a8b175..3c73c7337 100644 --- a/miscutils/crond.c +++ b/miscutils/crond.c @@ -137,7 +137,7 @@ int crond_main(int ac, char **av) opt_complementary = "f-b:b-f:S-L:L-S" USE_DEBUG_CROND_OPTION(":d-l"); opterr = 0; /* disable getopt 'errors' message. */ - opt = getopt32(ac, av, "l:L:fbSc:" USE_DEBUG_CROND_OPTION("d:"), + opt = getopt32(av, "l:L:fbSc:" USE_DEBUG_CROND_OPTION("d:"), &lopt, &Lopt, &copt USE_DEBUG_CROND_OPTION(, &dopt)); if (opt & 1) /* -l */ LogLevel = xatou(lopt); -- cgit v1.2.3