From 0c25765dadfc6f92e0c90f146df6b018025d4c62 Mon Sep 17 00:00:00 2001 From: vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> Date: Fri, 6 Oct 2006 09:49:47 +0000 Subject: dnsd fix; option_mask32 added. dnsd needs more love. git-svn-id: svn://busybox.net/trunk/busybox@16316 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- libbb/getopt32.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libbb') 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; } -- cgit v1.2.3-55-g6feb