aboutsummaryrefslogtreecommitdiff
path: root/libbb/getopt32.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-10-06 09:49:47 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-10-06 09:49:47 +0000
commitc12f53090bd41dbb87279083bc442769cb0610f0 (patch)
tree079fff1c37f04ea7f25f00cdc4360d52a69b77c5 /libbb/getopt32.c
parent4e6ceb44554d265eed24c414b9a201d51d00fee2 (diff)
downloadbusybox-c12f53090bd41dbb87279083bc442769cb0610f0.tar.gz
dnsd fix; option_mask32 added. dnsd needs more love.
Diffstat (limited to 'libbb/getopt32.c')
-rw-r--r--libbb/getopt32.c4
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[] = {
const struct option *applet_long_options = bb_default_long_options;
#endif
+uint32_t option_mask32;
+
uint32_t
getopt32(int argc, char **argv, const char *applet_opts, ...)
{
@@ -512,5 +514,7 @@ loop_arg_is_opt:
argc -= optind;
if (argc < min_arg || (max_arg >= 0 && argc > max_arg))
bb_show_usage();
+
+ option_mask32 = flags;
return flags;
}