delete tons of extra #includes

This commit is contained in:
Denis Vlasenko
2007-05-31 22:42:12 +00:00
parent fad2b86c9e
commit 9a7d38fe24
59 changed files with 68 additions and 176 deletions

View File

@@ -11,8 +11,6 @@
* return 1. Otherwise return 0.
*/
#include <stdio.h>
#include <ctype.h>
#include "libbb.h"
int bb_ask_confirmation(void)

View File

@@ -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"

View File

@@ -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)

View File

@@ -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"

View File

@@ -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, ...)

View File

@@ -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,

View File

@@ -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 {

View File

@@ -28,7 +28,7 @@
- not true viewing if length prompt less terminal width
*/
#include <sys/ioctl.h>
//#include <sys/ioctl.h>
#include "libbb.h"

View File

@@ -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. */

View File

@@ -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: "

View File

@@ -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[] =

View File

@@ -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)
{

View File

@@ -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