summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko2006-12-22 00:45:27 +0000
committerDenis Vlasenko2006-12-22 00:45:27 +0000
commitafc9ff99fd1cbf67eb6e313be247e2e53269a0dc (patch)
treecf6b800fcad5a740692914f223846b170c639707
parent714701c890b5f03253c5ecdb7367c4258ce78715 (diff)
downloadbusybox-afc9ff99fd1cbf67eb6e313be247e2e53269a0dc.zip
busybox-afc9ff99fd1cbf67eb6e313be247e2e53269a0dc.tar.gz
removal of commented-out cruft
-rw-r--r--archival/libunarchive/data_extract_to_stdout.c1
-rw-r--r--archival/libunarchive/filter_accept_list_reassign.c10
-rw-r--r--archival/libunarchive/get_header_tar_bz2.c7
-rw-r--r--coreutils/cal.c5
-rw-r--r--shell/cmdedit.c1
5 files changed, 3 insertions, 21 deletions
diff --git a/archival/libunarchive/data_extract_to_stdout.c b/archival/libunarchive/data_extract_to_stdout.c
index 2e266c0..d87a4a5 100644
--- a/archival/libunarchive/data_extract_to_stdout.c
+++ b/archival/libunarchive/data_extract_to_stdout.c
@@ -4,7 +4,6 @@
*/
#include "unarchive.h"
-//#include <unistd.h>
void data_extract_to_stdout(archive_handle_t *archive_handle)
{
diff --git a/archival/libunarchive/filter_accept_list_reassign.c b/archival/libunarchive/filter_accept_list_reassign.c
index 04b6780..0fb536f 100644
--- a/archival/libunarchive/filter_accept_list_reassign.c
+++ b/archival/libunarchive/filter_accept_list_reassign.c
@@ -5,17 +5,13 @@
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
*/
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-
#include "libbb.h"
#include "unarchive.h"
/*
- * Reassign the subarchive metadata parser based on the filename extension
- * e.g. if its a .tar.gz modify archive_handle->sub_archive to process a .tar.gz
- * or if its a .tar.bz2 make archive_handle->sub_archive handle that
+ * Reassign the subarchive metadata parser based on the filename extension
+ * e.g. if its a .tar.gz modify archive_handle->sub_archive to process a .tar.gz
+ * or if its a .tar.bz2 make archive_handle->sub_archive handle that
*/
char filter_accept_list_reassign(archive_handle_t *archive_handle)
{
diff --git a/archival/libunarchive/get_header_tar_bz2.c b/archival/libunarchive/get_header_tar_bz2.c
index e7a80fc..d8715c0 100644
--- a/archival/libunarchive/get_header_tar_bz2.c
+++ b/archival/libunarchive/get_header_tar_bz2.c
@@ -3,13 +3,6 @@
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
*/
-#include <sys/types.h>
-#include <sys/wait.h>
-#include <signal.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
#include "libbb.h"
#include "unarchive.h"
diff --git a/coreutils/cal.c b/coreutils/cal.c
index 681a88d..82ebf14 100644
--- a/coreutils/cal.c
+++ b/coreutils/cal.c
@@ -87,11 +87,6 @@ int cal_main(int argc, char **argv)
char day_headings[28]; /* 28 for julian, 21 for nonjulian */
char buf[40];
-// Done in busybox.c, ok to remove?
-//#ifdef CONFIG_LOCALE_SUPPORT
-// setlocale(LC_TIME, "");
-//#endif
-
flags = getopt32(argc, argv, "jy");
julian = flags & 1;
diff --git a/shell/cmdedit.c b/shell/cmdedit.c
index 68772fe..93758c9 100644
--- a/shell/cmdedit.c
+++ b/shell/cmdedit.c
@@ -77,7 +77,6 @@ static int n_history;
static int cur_history;
#endif
-//#include <termios.h>
#define setTermSettings(fd,argp) tcsetattr(fd, TCSANOW, argp)
#define getTermSettings(fd,argp) tcgetattr(fd, argp);