aboutsummaryrefslogtreecommitdiff
path: root/libbb/getopt32.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2012-03-22 13:15:08 +0000
committerRon Yorston <rmy@pobox.com>2012-03-22 13:15:08 +0000
commitc0d4367d6b581eb5989c02815880cf0fa2851ae8 (patch)
tree868c266e627e2d7f65ba5a4d5f98a1c421453181 /libbb/getopt32.c
parentf6bad5ef766b0447158e3de2f55c35f1f6cecb58 (diff)
parentda4441c44f6efccb6f7b7588404d9c6bfb7b6af8 (diff)
downloadbusybox-w32-c0d4367d6b581eb5989c02815880cf0fa2851ae8.tar.gz
busybox-w32-c0d4367d6b581eb5989c02815880cf0fa2851ae8.tar.bz2
busybox-w32-c0d4367d6b581eb5989c02815880cf0fa2851ae8.zip
Merge commit 'da4441c44f6efccb6f7b7588404d9c6bfb7b6af8' into merge
Conflicts: libbb/vfork_daemon_rexec.c networking/wget.c procps/ps.c
Diffstat (limited to 'libbb/getopt32.c')
-rw-r--r--libbb/getopt32.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libbb/getopt32.c b/libbb/getopt32.c
index 187cb3a79..053ffc349 100644
--- a/libbb/getopt32.c
+++ b/libbb/getopt32.c
@@ -80,9 +80,9 @@ const char *applet_long_options
80 This struct allows you to define long options: 80 This struct allows you to define long options:
81 81
82 static const char applet_longopts[] ALIGN1 = 82 static const char applet_longopts[] ALIGN1 =
83 //"name\0" has_arg val 83 //"name\0" has_arg val
84 "verbose\0" No_argument "v" 84 "verbose\0" No_argument "v"
85 ; 85 ;
86 applet_long_options = applet_longopts; 86 applet_long_options = applet_longopts;
87 87
88 The last member of struct option (val) typically is set to 88 The last member of struct option (val) typically is set to
@@ -226,7 +226,7 @@ Special characters:
226 if specified together. In this case you must set 226 if specified together. In this case you must set
227 opt_complementary = "b--cf:c--bf:f--bc". If two of the 227 opt_complementary = "b--cf:c--bf:f--bc". If two of the
228 mutually exclusive options are found, getopt32 will call 228 mutually exclusive options are found, getopt32 will call
229 bb_show_usage() and die. 229 bb_show_usage() and die.
230 230
231 "x--x" Variation of the above, it means that -x option should occur 231 "x--x" Variation of the above, it means that -x option should occur
232 at most once. 232 at most once.
@@ -531,7 +531,7 @@ getopt32(char **argv, const char *applet_opts, ...)
531 531
532 /* In case getopt32 was already called: 532 /* In case getopt32 was already called:
533 * reset the libc getopt() function, which keeps internal state. 533 * reset the libc getopt() function, which keeps internal state.
534 * run_nofork_applet_prime() does this, but we might end up here 534 * run_nofork_applet() does this, but we might end up here
535 * also via gunzip_main() -> gzip_main(). Play safe. 535 * also via gunzip_main() -> gzip_main(). Play safe.
536 */ 536 */
537#if defined(__GLIBC__) || ENABLE_PLATFORM_MINGW32 537#if defined(__GLIBC__) || ENABLE_PLATFORM_MINGW32