aboutsummaryrefslogtreecommitdiff
path: root/miscutils/crond.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-10-03 21:00:06 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-10-03 21:00:06 +0000
commit67b23e6043d8e2b30b0bf3bc105b8583c2a26db5 (patch)
treeedb58560b444979051b42ab7f0c0c718f7459754 /miscutils/crond.c
parent40920825d59874cf285390434486e88c8498d2d8 (diff)
downloadbusybox-w32-67b23e6043d8e2b30b0bf3bc105b8583c2a26db5.tar.gz
busybox-w32-67b23e6043d8e2b30b0bf3bc105b8583c2a26db5.tar.bz2
busybox-w32-67b23e6043d8e2b30b0bf3bc105b8583c2a26db5.zip
getopt_ulflags -> getopt32.
It is impossible to formulate sane ABI based on size of ulong because it can be 32-bit or 64-bit. Basically it means that you cannot portably use more that 32 option chars in one call anyway... Make it explicit.
Diffstat (limited to 'miscutils/crond.c')
-rw-r--r--miscutils/crond.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/miscutils/crond.c b/miscutils/crond.c
index 3e12fedc8..4f25486dd 100644
--- a/miscutils/crond.c
+++ b/miscutils/crond.c
@@ -133,19 +133,19 @@ static void crondlog(const char *ctl, ...)
133 133
134int crond_main(int ac, char **av) 134int crond_main(int ac, char **av)
135{ 135{
136 unsigned long opt; 136 unsigned opt;
137 char *lopt, *Lopt, *copt; 137 char *lopt, *Lopt, *copt;
138 138
139#if ENABLE_DEBUG_CROND_OPTION 139#if ENABLE_DEBUG_CROND_OPTION
140 char *dopt; 140 char *dopt;
141 141
142 bb_opt_complementally = "f-b:b-f:S-L:L-S:d-l"; 142 opt_complementary = "f-b:b-f:S-L:L-S:d-l";
143#else 143#else
144 bb_opt_complementally = "f-b:b-f:S-L:L-S"; 144 opt_complementary = "f-b:b-f:S-L:L-S";
145#endif 145#endif
146 146
147 opterr = 0; /* disable getopt 'errors' message. */ 147 opterr = 0; /* disable getopt 'errors' message. */
148 opt = bb_getopt_ulflags(ac, av, "l:L:fbSc:" 148 opt = getopt32(ac, av, "l:L:fbSc:"
149#if ENABLE_DEBUG_CROND_OPTION 149#if ENABLE_DEBUG_CROND_OPTION
150 "d:" 150 "d:"
151#endif 151#endif