diff options
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/ask_confirmation.c | 2 | ||||
-rw-r--r-- | libbb/bb_askpass.c | 7 | ||||
-rw-r--r-- | libbb/bb_do_delay.c | 2 | ||||
-rw-r--r-- | libbb/get_console.c | 2 | ||||
-rw-r--r-- | libbb/herror_msg.c | 3 | ||||
-rw-r--r-- | libbb/human_readable.c | 1 | ||||
-rw-r--r-- | libbb/inode_hash.c | 3 | ||||
-rw-r--r-- | libbb/lineedit.c | 2 | ||||
-rw-r--r-- | libbb/llist.c | 1 | ||||
-rw-r--r-- | libbb/login.c | 6 | ||||
-rw-r--r-- | libbb/mtab_file.c | 2 | ||||
-rw-r--r-- | libbb/safe_strncpy.c | 3 | ||||
-rw-r--r-- | libbb/sha1.c | 8 |
13 files changed, 4 insertions, 38 deletions
diff --git a/libbb/ask_confirmation.c b/libbb/ask_confirmation.c index 4642fa036..646ec4b7e 100644 --- a/libbb/ask_confirmation.c +++ b/libbb/ask_confirmation.c @@ -11,8 +11,6 @@ * return 1. Otherwise return 0. */ -#include <stdio.h> -#include <ctype.h> #include "libbb.h" int bb_ask_confirmation(void) diff --git a/libbb/bb_askpass.c b/libbb/bb_askpass.c index 097a0a290..0f1f68687 100644 --- a/libbb/bb_askpass.c +++ b/libbb/bb_askpass.c @@ -8,13 +8,8 @@ * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. */ -#include <stdio.h> -#include <string.h> -#include <unistd.h> -#include <fcntl.h> -#include <signal.h> #include <termios.h> -#include <sys/ioctl.h> +//#include <sys/ioctl.h> #include "libbb.h" diff --git a/libbb/bb_do_delay.c b/libbb/bb_do_delay.c index e14b67a19..aa26aded1 100644 --- a/libbb/bb_do_delay.c +++ b/libbb/bb_do_delay.c @@ -7,8 +7,6 @@ * Licensed under the GPL v2, see the file LICENSE in this tarball. */ -#include <time.h> -#include <unistd.h> #include "libbb.h" void bb_do_delay(int seconds) diff --git a/libbb/get_console.c b/libbb/get_console.c index 9797ad6f0..b12951823 100644 --- a/libbb/get_console.c +++ b/libbb/get_console.c @@ -8,7 +8,7 @@ * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. */ -#include <sys/ioctl.h> +//#include <sys/ioctl.h> #include "libbb.h" diff --git a/libbb/herror_msg.c b/libbb/herror_msg.c index 1e6908d82..943702c68 100644 --- a/libbb/herror_msg.c +++ b/libbb/herror_msg.c @@ -7,9 +7,6 @@ * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. */ -#include <stdarg.h> -#include <stdlib.h> - #include "libbb.h" void bb_herror_msg(const char *s, ...) diff --git a/libbb/human_readable.c b/libbb/human_readable.c index 7469e7999..7714abecb 100644 --- a/libbb/human_readable.c +++ b/libbb/human_readable.c @@ -26,7 +26,6 @@ * and "#if 0"'d below. */ -#include <stdio.h> #include "libbb.h" const char *make_human_readable_str(unsigned long long size, diff --git a/libbb/inode_hash.c b/libbb/inode_hash.c index 78c1b0f9e..69e39af63 100644 --- a/libbb/inode_hash.c +++ b/libbb/inode_hash.c @@ -8,9 +8,6 @@ * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. */ -#include <stdio.h> -#include <stdlib.h> -#include <string.h> #include "libbb.h" typedef struct ino_dev_hash_bucket_struct { diff --git a/libbb/lineedit.c b/libbb/lineedit.c index 9bbc7097d..b950d7f26 100644 --- a/libbb/lineedit.c +++ b/libbb/lineedit.c @@ -28,7 +28,7 @@ - not true viewing if length prompt less terminal width */ -#include <sys/ioctl.h> +//#include <sys/ioctl.h> #include "libbb.h" diff --git a/libbb/llist.c b/libbb/llist.c index 706751447..4b3971bbe 100644 --- a/libbb/llist.c +++ b/libbb/llist.c @@ -10,7 +10,6 @@ * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. */ -#include <stdlib.h> #include "libbb.h" /* Add data to the start of the linked list. */ diff --git a/libbb/login.c b/libbb/login.c index f3a3357bc..1cbadd228 100644 --- a/libbb/login.c +++ b/libbb/login.c @@ -10,12 +10,8 @@ */ #include <sys/param.h> /* MAXHOSTNAMELEN */ -#include <stdio.h> -#include <unistd.h> -#include "libbb.h" - #include <sys/utsname.h> -#include <time.h> +#include "libbb.h" #define LOGIN " login: " diff --git a/libbb/mtab_file.c b/libbb/mtab_file.c index 67367e3d7..d00405d8a 100644 --- a/libbb/mtab_file.c +++ b/libbb/mtab_file.c @@ -7,10 +7,8 @@ * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. */ -#include <stdio.h> #include "libbb.h" - /* Busybox mount uses either /proc/mounts or /etc/mtab to * get the list of currently mounted filesystems */ const char bb_path_mtab_file[] = diff --git a/libbb/safe_strncpy.c b/libbb/safe_strncpy.c index 42bc16ea0..ebc7e28f3 100644 --- a/libbb/safe_strncpy.c +++ b/libbb/safe_strncpy.c @@ -7,11 +7,8 @@ * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. */ -#include <string.h> #include "libbb.h" - - /* Like strncpy but make sure the resulting string is always 0 terminated. */ char * safe_strncpy(char *dst, const char *src, size_t size) { diff --git a/libbb/sha1.c b/libbb/sha1.c index 734fde4c5..552dcad80 100644 --- a/libbb/sha1.c +++ b/libbb/sha1.c @@ -16,14 +16,6 @@ * stored in memory. It runs at 22 cycles per byte on a Pentium P4 processor */ -#include <fcntl.h> -#include <limits.h> -#include <stdio.h> -#include <stdint.h> -#include <stdlib.h> -#include <string.h> -#include <unistd.h> - #include "libbb.h" #define SHA1_BLOCK_SIZE 64 |