diff options
author | Denis Vlasenko | 2007-05-31 22:42:12 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-05-31 22:42:12 +0000 |
commit | 9a7d38fe2448617df98ecaea7dbe6f3131088586 (patch) | |
tree | 5966d651dcb5588e24106791f9cd3647f358112b /libbb | |
parent | fad2b86c9e7eaadb973b50a1bc0e2accc1a96cfd (diff) | |
download | busybox-9a7d38fe2448617df98ecaea7dbe6f3131088586.zip busybox-9a7d38fe2448617df98ecaea7dbe6f3131088586.tar.gz |
delete tons of extra #includes
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 4642fa0..646ec4b 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 097a0a2..0f1f686 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 e14b67a..aa26ade 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 9797ad6..b129518 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 1e6908d..943702c 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 7469e79..7714abe 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 78c1b0f..69e39af 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 9bbc709..b950d7f 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 7067514..4b3971b 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 f3a3357..1cbadd2 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 67367e3..d00405d 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 42bc16e..ebc7e28 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 734fde4..552dcad 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 |