aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-06-09 18:40:07 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-06-09 18:40:07 +0200
commit2634bf366b298a827d043566656f8696f4dc153c (patch)
tree72c0b708f16f97d953587422321005067fd6e106
parent38d9072b2c9490e67c3423e09b081754095d8c49 (diff)
downloadbusybox-w32-2634bf366b298a827d043566656f8696f4dc153c.tar.gz
busybox-w32-2634bf366b298a827d043566656f8696f4dc153c.tar.bz2
busybox-w32-2634bf366b298a827d043566656f8696f4dc153c.zip
randomconfig fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--archival/Kbuild2
-rw-r--r--shell/ash.c10
-rw-r--r--util-linux/script.c7
3 files changed, 13 insertions, 6 deletions
diff --git a/archival/Kbuild b/archival/Kbuild
index de0ca4315..53bd7e21e 100644
--- a/archival/Kbuild
+++ b/archival/Kbuild
@@ -16,7 +16,7 @@ lib-$(CONFIG_DPKG) += dpkg.o
16lib-$(CONFIG_DPKG_DEB) += dpkg_deb.o 16lib-$(CONFIG_DPKG_DEB) += dpkg_deb.o
17lib-$(CONFIG_GUNZIP) += bbunzip.o 17lib-$(CONFIG_GUNZIP) += bbunzip.o
18lib-$(CONFIG_GZIP) += gzip.o bbunzip.o 18lib-$(CONFIG_GZIP) += gzip.o bbunzip.o
19lib-$(CONFIG_LZOP) += lzop.o lzo1x_1.o lzo1x_1o.o lzo1x_d.o 19lib-$(CONFIG_LZOP) += lzop.o lzo1x_1.o lzo1x_1o.o lzo1x_d.o bbunzip.o
20lib-$(CONFIG_LZOP_COMPR_HIGH) += lzo1x_9x.o 20lib-$(CONFIG_LZOP_COMPR_HIGH) += lzo1x_9x.o
21lib-$(CONFIG_RPM2CPIO) += rpm2cpio.o 21lib-$(CONFIG_RPM2CPIO) += rpm2cpio.o
22lib-$(CONFIG_RPM) += rpm.o 22lib-$(CONFIG_RPM) += rpm.o
diff --git a/shell/ash.c b/shell/ash.c
index cc5802c30..7843afaff 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -1730,13 +1730,13 @@ static const char defifs[] ALIGN1 = " \t\n";
1730 1730
1731/* Need to be before varinit_data[] */ 1731/* Need to be before varinit_data[] */
1732#if ENABLE_LOCALE_SUPPORT 1732#if ENABLE_LOCALE_SUPPORT
1733static void 1733static void FAST_FUNC
1734change_lc_all(const char *value) 1734change_lc_all(const char *value)
1735{ 1735{
1736 if (value && *value != '\0') 1736 if (value && *value != '\0')
1737 setlocale(LC_ALL, value); 1737 setlocale(LC_ALL, value);
1738} 1738}
1739static void 1739static void FAST_FUNC
1740change_lc_ctype(const char *value) 1740change_lc_ctype(const char *value)
1741{ 1741{
1742 if (value && *value != '\0') 1742 if (value && *value != '\0')
@@ -8740,9 +8740,15 @@ static int ulimitcmd(int, char **) FAST_FUNC;
8740 */ 8740 */
8741 8741
8742/* Stubs for calling non-FAST_FUNC's */ 8742/* Stubs for calling non-FAST_FUNC's */
8743#if ENABLE_ASH_BUILTIN_ECHO
8743static int FAST_FUNC echocmd(int argc, char **argv) { return echo_main(argc, argv); } 8744static int FAST_FUNC echocmd(int argc, char **argv) { return echo_main(argc, argv); }
8745#endif
8746#if ENABLE_ASH_BUILTIN_PRINTF
8744static int FAST_FUNC printfcmd(int argc, char **argv) { return printf_main(argc, argv); } 8747static int FAST_FUNC printfcmd(int argc, char **argv) { return printf_main(argc, argv); }
8748#endif
8749#if ENABLE_ASH_BUILTIN_TEST
8745static int FAST_FUNC testcmd(int argc, char **argv) { return test_main(argc, argv); } 8750static int FAST_FUNC testcmd(int argc, char **argv) { return test_main(argc, argv); }
8751#endif
8746 8752
8747/* Keep these in proper order since it is searched via bsearch() */ 8753/* Keep these in proper order since it is searched via bsearch() */
8748static const struct builtincmd builtintab[] = { 8754static const struct builtincmd builtintab[] = {
diff --git a/util-linux/script.c b/util-linux/script.c
index 4e0deb4ef..2e2be33e7 100644
--- a/util-linux/script.c
+++ b/util-linux/script.c
@@ -36,16 +36,17 @@ int script_main(int argc UNUSED_PARAM, char **argv)
36 OPT_t = (1 << 4), 36 OPT_t = (1 << 4),
37 }; 37 };
38 38
39#if ENABLE_GETOPT_LONG
39 static const char getopt_longopts[] ALIGN1 = 40 static const char getopt_longopts[] ALIGN1 =
40 "append\0" No_argument "a" 41 "append\0" No_argument "a"
41 "command\0" Required_argument "c" 42 "command\0" Required_argument "c"
42 "flush\0" No_argument "f" 43 "flush\0" No_argument "f"
43 "quiet\0" No_argument "q" 44 "quiet\0" No_argument "q"
44 IF_SCRIPTREPLAY("timing\0" No_argument "t") 45 IF_SCRIPTREPLAY("timing\0" No_argument "t")
45 ; 46 ;
46 47
47 if (ENABLE_GETOPT_LONG) 48 applet_long_options = getopt_longopts;
48 applet_long_options = getopt_longopts; 49#endif
49 50
50 opt_complementary = "?1"; /* max one arg */ 51 opt_complementary = "?1"; /* max one arg */
51 opt = getopt32(argv, "ac:fq" IF_SCRIPTREPLAY("t") , &shell_arg); 52 opt = getopt32(argv, "ac:fq" IF_SCRIPTREPLAY("t") , &shell_arg);