aboutsummaryrefslogtreecommitdiff
path: root/libbb/getopt32.c
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-12-16 23:48:13 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-12-16 23:48:13 +0000
commitb0ba03e9b3d460154fd09ef5676c18bf0770fdce (patch)
tree1db4966ffc99ad3c495bd18d6f7040e1515e79d7 /libbb/getopt32.c
parent13fadcb7fbac1e7b95cf2de2dff28b2d547a40c1 (diff)
downloadbusybox-w32-b0ba03e9b3d460154fd09ef5676c18bf0770fdce.tar.gz
busybox-w32-b0ba03e9b3d460154fd09ef5676c18bf0770fdce.tar.bz2
busybox-w32-b0ba03e9b3d460154fd09ef5676c18bf0770fdce.zip
s/extern inline/static ATTRIBUTE_ALWAYS_INLINE/g
xstrtou: disallow leading '+' git-svn-id: svn://busybox.net/trunk/busybox@16976 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb/getopt32.c')
-rw-r--r--libbb/getopt32.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libbb/getopt32.c b/libbb/getopt32.c
index dddf8121a..50343fdab 100644
--- a/libbb/getopt32.c
+++ b/libbb/getopt32.c
@@ -447,7 +447,6 @@ getopt32(int argc, char **argv, const char *applet_opts, ...)
447 } 447 }
448 va_end (p); 448 va_end (p);
449 449
450#if ENABLE_AR || ENABLE_TAR
451 if (spec_flgs & FIRST_ARGV_IS_OPT) { 450 if (spec_flgs & FIRST_ARGV_IS_OPT) {
452 if (argv[1] && argv[1][0] != '-' && argv[1][0] != '\0') { 451 if (argv[1] && argv[1][0] != '-' && argv[1][0] != '\0') {
453 argv[1] = xasprintf("-%s", argv[1]); 452 argv[1] = xasprintf("-%s", argv[1]);
@@ -455,7 +454,6 @@ getopt32(int argc, char **argv, const char *applet_opts, ...)
455 spec_flgs |= FREE_FIRST_ARGV_IS_OPT; 454 spec_flgs |= FREE_FIRST_ARGV_IS_OPT;
456 } 455 }
457 } 456 }
458#endif
459 /* Note: just "getopt() <= 0" will not work good for 457 /* Note: just "getopt() <= 0" will not work good for
460 * "fake" short options, like this one: 458 * "fake" short options, like this one:
461 * wget $'-\203' "Test: test" http://kernel.org/ 459 * wget $'-\203' "Test: test" http://kernel.org/