diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-12-12 02:42:35 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-12-12 02:42:35 +0100 |
commit | 31e2e7b86388e4ece09f37866bd1411f357cafbd (patch) | |
tree | d87ab658d71ea54decdf6f6c94a0de1133124ea1 | |
parent | 1315c30fefe6e64cd2cbc95fe484b02ce70afec1 (diff) | |
download | busybox-w32-31e2e7b86388e4ece09f37866bd1411f357cafbd.tar.gz busybox-w32-31e2e7b86388e4ece09f37866bd1411f357cafbd.tar.bz2 busybox-w32-31e2e7b86388e4ece09f37866bd1411f357cafbd.zip |
randomconfig fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | libbb/Kbuild | 2 | ||||
-rw-r--r-- | libbb/lineedit.c | 2 | ||||
-rw-r--r-- | miscutils/beep.c | 6 | ||||
-rw-r--r-- | networking/tftp.c | 3 | ||||
-rw-r--r-- | networking/traceroute.c | 7 | ||||
-rwxr-xr-x | scripts/randomtest | 15 |
6 files changed, 14 insertions, 21 deletions
diff --git a/libbb/Kbuild b/libbb/Kbuild index c0995708a..243626d67 100644 --- a/libbb/Kbuild +++ b/libbb/Kbuild | |||
@@ -145,6 +145,8 @@ lib-$(CONFIG_FEATURE_HTTPD_AUTH_MD5) += pw_encrypt.o | |||
145 | 145 | ||
146 | lib-$(CONFIG_DF) += find_mount_point.o | 146 | lib-$(CONFIG_DF) += find_mount_point.o |
147 | lib-$(CONFIG_MKFS_MINIX) += find_mount_point.o | 147 | lib-$(CONFIG_MKFS_MINIX) += find_mount_point.o |
148 | lib-$(CONFIG_MKFS_EXT2) += find_mount_point.o | ||
149 | lib-$(CONFIG_MKFS_REISER) += find_mount_point.o | ||
148 | lib-$(CONFIG_FSCK_MINIX) += find_mount_point.o | 150 | lib-$(CONFIG_FSCK_MINIX) += find_mount_point.o |
149 | lib-$(CONFIG_MOUNT) += find_mount_point.o | 151 | lib-$(CONFIG_MOUNT) += find_mount_point.o |
150 | 152 | ||
diff --git a/libbb/lineedit.c b/libbb/lineedit.c index 7bb3f2e35..c73e6b712 100644 --- a/libbb/lineedit.c +++ b/libbb/lineedit.c | |||
@@ -71,7 +71,9 @@ | |||
71 | # define BB_NUL L'\0' | 71 | # define BB_NUL L'\0' |
72 | # define CHAR_T wchar_t | 72 | # define CHAR_T wchar_t |
73 | static bool BB_isspace(CHAR_T c) { return ((unsigned)c < 256 && isspace(c)); } | 73 | static bool BB_isspace(CHAR_T c) { return ((unsigned)c < 256 && isspace(c)); } |
74 | # if ENABLE_FEATURE_EDITING_VI | ||
74 | static bool BB_isalnum(CHAR_T c) { return ((unsigned)c < 256 && isalnum(c)); } | 75 | static bool BB_isalnum(CHAR_T c) { return ((unsigned)c < 256 && isalnum(c)); } |
76 | # endif | ||
75 | static bool BB_ispunct(CHAR_T c) { return ((unsigned)c < 256 && ispunct(c)); } | 77 | static bool BB_ispunct(CHAR_T c) { return ((unsigned)c < 256 && ispunct(c)); } |
76 | # undef isspace | 78 | # undef isspace |
77 | # undef isalnum | 79 | # undef isalnum |
diff --git a/miscutils/beep.c b/miscutils/beep.c index f3266dc2d..c17cbfdad 100644 --- a/miscutils/beep.c +++ b/miscutils/beep.c | |||
@@ -32,8 +32,10 @@ int beep_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | |||
32 | int beep_main(int argc, char **argv) | 32 | int beep_main(int argc, char **argv) |
33 | { | 33 | { |
34 | int speaker = get_console_fd_or_die(); | 34 | int speaker = get_console_fd_or_die(); |
35 | unsigned length, delay, rep; | 35 | unsigned tickrate_div_freq = tickrate_div_freq; /* for compiler */ |
36 | unsigned tickrate_div_freq; | 36 | unsigned length = length; |
37 | unsigned delay = delay; | ||
38 | unsigned rep = rep; | ||
37 | int c; | 39 | int c; |
38 | 40 | ||
39 | c = 'n'; | 41 | c = 'n'; |
diff --git a/networking/tftp.c b/networking/tftp.c index ef4198be8..8d6038853 100644 --- a/networking/tftp.c +++ b/networking/tftp.c | |||
@@ -743,7 +743,7 @@ int tftpd_main(int argc UNUSED_PARAM, char **argv) | |||
743 | const char *error_msg; | 743 | const char *error_msg; |
744 | int opt, result, opcode; | 744 | int opt, result, opcode; |
745 | IF_FEATURE_TFTP_BLOCKSIZE(int blksize = TFTP_BLKSIZE_DEFAULT;) | 745 | IF_FEATURE_TFTP_BLOCKSIZE(int blksize = TFTP_BLKSIZE_DEFAULT;) |
746 | IF_FEATURE_TFTP_BLOCKSIZE(int want_transfer_size;) | 746 | IF_FEATURE_TFTP_BLOCKSIZE(int want_transfer_size = 0;) |
747 | 747 | ||
748 | INIT_G(); | 748 | INIT_G(); |
749 | 749 | ||
@@ -791,7 +791,6 @@ int tftpd_main(int argc UNUSED_PARAM, char **argv) | |||
791 | goto err; | 791 | goto err; |
792 | } | 792 | } |
793 | # if ENABLE_FEATURE_TFTP_BLOCKSIZE | 793 | # if ENABLE_FEATURE_TFTP_BLOCKSIZE |
794 | want_transfer_size = 0; | ||
795 | { | 794 | { |
796 | char *res; | 795 | char *res; |
797 | char *opt_str = mode + sizeof("octet"); | 796 | char *opt_str = mode + sizeof("octet"); |
diff --git a/networking/traceroute.c b/networking/traceroute.c index 110bdfa76..a30decf10 100644 --- a/networking/traceroute.c +++ b/networking/traceroute.c | |||
@@ -703,9 +703,10 @@ packet_ok(int read_len, len_and_sockaddr *from_lsa, | |||
703 | } | 703 | } |
704 | #else /* !ENABLE_TRACEROUTE6 */ | 704 | #else /* !ENABLE_TRACEROUTE6 */ |
705 | static ALWAYS_INLINE int | 705 | static ALWAYS_INLINE int |
706 | packet_ok(int read_len, len_and_sockaddr *from_lsa, | 706 | packet_ok(int read_len, |
707 | struct sockaddr *to UNUSED_PARAM, | 707 | len_and_sockaddr *from_lsa IF_NOT_FEATURE_TRACEROUTE_VERBOSE(UNUSED_PARAM), |
708 | int seq) | 708 | struct sockaddr *to UNUSED_PARAM, |
709 | int seq) | ||
709 | { | 710 | { |
710 | return packet4_ok(read_len, &from_lsa->u.sin, seq); | 711 | return packet4_ok(read_len, &from_lsa->u.sin, seq); |
711 | } | 712 | } |
diff --git a/scripts/randomtest b/scripts/randomtest index bd5ef4bfe..a7a20250d 100755 --- a/scripts/randomtest +++ b/scripts/randomtest | |||
@@ -35,10 +35,6 @@ cat .config \ | |||
35 | | grep -v ^CONFIG_SELINUX= \ | 35 | | grep -v ^CONFIG_SELINUX= \ |
36 | | grep -v ^CONFIG_EFENCE= \ | 36 | | grep -v ^CONFIG_EFENCE= \ |
37 | | grep -v ^CONFIG_DMALLOC= \ | 37 | | grep -v ^CONFIG_DMALLOC= \ |
38 | | grep -v ^CONFIG_ACPID= \ | ||
39 | | grep -v ^CONFIG_FLASH_ERASEALL= \ | ||
40 | | grep -v ^CONFIG_FLASH_LOCK= \ | ||
41 | | grep -v ^CONFIG_FLASH_UNLOCK= \ | ||
42 | | cat >.config.new | 38 | | cat >.config.new |
43 | mv .config.new .config | 39 | mv .config.new .config |
44 | } | 40 | } |
@@ -61,15 +57,6 @@ echo 'CONFIG_CROSS_COMPILER_PREFIX="'"$uclibc_cross"'"' >>.config | |||
61 | echo 'CONFIG_STATIC=y' >>.config | 57 | echo 'CONFIG_STATIC=y' >>.config |
62 | } | 58 | } |
63 | 59 | ||
64 | # If NOMMU, remove some things | ||
65 | grep -q ^CONFIG_NOMMU= .config && { | ||
66 | cat .config \ | ||
67 | | grep -v ^CONFIG_ASH= \ | ||
68 | | grep -v ^CONFIG_FEATURE_SH_IS_ASH= \ | ||
69 | | cat >.config.new | ||
70 | mv .config.new .config | ||
71 | } | ||
72 | |||
73 | # If STATIC, remove some things | 60 | # If STATIC, remove some things |
74 | # PAM with static linking is probably pointless | 61 | # PAM with static linking is probably pointless |
75 | # (but I need to try - now I don't have libpam.a on my system, only libpam.so) | 62 | # (but I need to try - now I don't have libpam.a on my system, only libpam.so) |
@@ -83,7 +70,7 @@ mv .config.new .config | |||
83 | # Regenerate .config with default answers for yanked-off options | 70 | # Regenerate .config with default answers for yanked-off options |
84 | { yes "" | make oldconfig >/dev/null; } || exit 1 | 71 | { yes "" | make oldconfig >/dev/null; } || exit 1 |
85 | 72 | ||
86 | nice -n 10 make 2>&1 | tee -a make.log | 73 | nice -n 10 make $MAKEOPTS 2>&1 | tee -a make.log |
87 | 74 | ||
88 | test -x busybox && { | 75 | test -x busybox && { |
89 | cd .. | 76 | cd .. |