diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-10-06 09:49:47 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-10-06 09:49:47 +0000 |
commit | 0c25765dadfc6f92e0c90f146df6b018025d4c62 (patch) | |
tree | 17df4dd427d85319857d9b7882585b3db9ad6994 /libbb | |
parent | c51bc4078de3529829b4ee0c20ed490af680c40d (diff) | |
download | busybox-w32-0c25765dadfc6f92e0c90f146df6b018025d4c62.tar.gz busybox-w32-0c25765dadfc6f92e0c90f146df6b018025d4c62.tar.bz2 busybox-w32-0c25765dadfc6f92e0c90f146df6b018025d4c62.zip |
dnsd fix; option_mask32 added. dnsd needs more love.
git-svn-id: svn://busybox.net/trunk/busybox@16316 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/getopt32.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libbb/getopt32.c b/libbb/getopt32.c index e08496578..2f2f0b9e9 100644 --- a/libbb/getopt32.c +++ b/libbb/getopt32.c | |||
@@ -302,6 +302,8 @@ static const struct option bb_default_long_options[] = { | |||
302 | const struct option *applet_long_options = bb_default_long_options; | 302 | const struct option *applet_long_options = bb_default_long_options; |
303 | #endif | 303 | #endif |
304 | 304 | ||
305 | uint32_t option_mask32; | ||
306 | |||
305 | uint32_t | 307 | uint32_t |
306 | getopt32(int argc, char **argv, const char *applet_opts, ...) | 308 | getopt32(int argc, char **argv, const char *applet_opts, ...) |
307 | { | 309 | { |
@@ -512,5 +514,7 @@ loop_arg_is_opt: | |||
512 | argc -= optind; | 514 | argc -= optind; |
513 | if (argc < min_arg || (max_arg >= 0 && argc > max_arg)) | 515 | if (argc < min_arg || (max_arg >= 0 && argc > max_arg)) |
514 | bb_show_usage(); | 516 | bb_show_usage(); |
517 | |||
518 | option_mask32 = flags; | ||
515 | return flags; | 519 | return flags; |
516 | } | 520 | } |