diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-08-19 13:42:08 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-08-19 13:42:08 +0000 |
commit | d37f22225b4d10b84bbc4f6cee2e26d9f9b80fac (patch) | |
tree | 732f39f3a15dcb56986ffd3900ab2fe3c46d0338 /miscutils/crond.c | |
parent | b9c02dd791041a4c3b87cb38354268893d739bd0 (diff) | |
download | busybox-w32-d37f22225b4d10b84bbc4f6cee2e26d9f9b80fac.tar.gz busybox-w32-d37f22225b4d10b84bbc4f6cee2e26d9f9b80fac.tar.bz2 busybox-w32-d37f22225b4d10b84bbc4f6cee2e26d9f9b80fac.zip |
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.
Diffstat (limited to 'miscutils/crond.c')
-rw-r--r-- | miscutils/crond.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
137 | 137 | ||
138 | opt_complementary = "f-b:b-f:S-L:L-S" USE_DEBUG_CROND_OPTION(":d-l"); | 138 | opt_complementary = "f-b:b-f:S-L:L-S" USE_DEBUG_CROND_OPTION(":d-l"); |
139 | opterr = 0; /* disable getopt 'errors' message. */ | 139 | opterr = 0; /* disable getopt 'errors' message. */ |
140 | opt = getopt32(ac, av, "l:L:fbSc:" USE_DEBUG_CROND_OPTION("d:"), | 140 | opt = getopt32(av, "l:L:fbSc:" USE_DEBUG_CROND_OPTION("d:"), |
141 | &lopt, &Lopt, &copt USE_DEBUG_CROND_OPTION(, &dopt)); | 141 | &lopt, &Lopt, &copt USE_DEBUG_CROND_OPTION(, &dopt)); |
142 | if (opt & 1) /* -l */ | 142 | if (opt & 1) /* -l */ |
143 | LogLevel = xatou(lopt); | 143 | LogLevel = xatou(lopt); |