aboutsummaryrefslogtreecommitdiff
path: root/miscutils
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-03-17 09:00:54 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-03-17 09:00:54 +0000
commit68404f13d4bf4826e3609703dad5375763db28ab (patch)
treeb89ed41daeb3a761ac9416a6eed090023b23e7e2 /miscutils
parenta55bd05f3cea6c7cbfb45d15009cb70570c2a43b (diff)
downloadbusybox-68404f13d4bf4826e3609703dad5375763db28ab.tar.gz
*: add -Wunused-parameter; fix resulting breakage
function old new delta procps_scan 1265 1298 +33 aliascmd 278 283 +5 parse_file_cmd 116 120 +4 dname_enc 373 377 +4 setcmd 90 93 +3 execcmd 57 60 +3 count_lines 72 74 +2 process_command_subs 340 339 -1 test_main 409 407 -2 mknod_main 179 177 -2 handle_incoming_and_exit 2653 2651 -2 argstr 1312 1310 -2 shiftcmd 131 128 -3 exitcmd 46 43 -3 dotcmd 297 294 -3 breakcmd 86 83 -3 evalpipe 353 349 -4 evalcommand 1180 1176 -4 evalcmd 109 105 -4 send_tree 374 369 -5 mkfifo_main 82 77 -5 evalsubshell 152 147 -5 typecmd 75 69 -6 letcmd 61 55 -6 add_cmd 1190 1183 -7 main 891 883 -8 ash_main 1415 1407 -8 parse_stream 1377 1367 -10 alloc_procps_scan 55 - -55 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 7/21 up/down: 54/-148) Total: -94 bytes text data bss dec hex filename 797195 658 7428 805281 c49a1 busybox_old 797101 658 7428 805187 c4943 busybox_unstripped
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/chat.c2
-rw-r--r--miscutils/crond.c2
-rw-r--r--miscutils/crontab.c2
-rw-r--r--miscutils/eject.c2
-rw-r--r--miscutils/last.c2
-rw-r--r--miscutils/microcom.c2
-rw-r--r--miscutils/strings.c2
7 files changed, 7 insertions, 7 deletions
diff --git a/miscutils/chat.c b/miscutils/chat.c
index 4f55738ec..50c5ad976 100644
--- a/miscutils/chat.c
+++ b/miscutils/chat.c
@@ -103,7 +103,7 @@ static size_t unescape(char *s, int *nocr)
int chat_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
-int chat_main(int argc, char **argv)
+int chat_main(int argc ATTRIBUTE_UNUSED, char **argv)
{
// should we dump device output? to what fd? by default no.
// this can be controlled later via ECHO {ON|OFF} chat directive
diff --git a/miscutils/crond.c b/miscutils/crond.c
index 6d4825e85..75555c874 100644
--- a/miscutils/crond.c
+++ b/miscutils/crond.c
@@ -158,7 +158,7 @@ static void crondlog(const char *ctl, ...)
}
int crond_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
-int crond_main(int ac, char **av)
+int crond_main(int ac ATTRIBUTE_UNUSED, char **av)
{
unsigned opt;
diff --git a/miscutils/crontab.c b/miscutils/crontab.c
index cb261ed18..94d69f032 100644
--- a/miscutils/crontab.c
+++ b/miscutils/crontab.c
@@ -88,7 +88,7 @@ static int open_as_user(const struct passwd *pas, const char *file)
}
int crontab_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
-int crontab_main(int argc, char **argv)
+int crontab_main(int argc ATTRIBUTE_UNUSED, char **argv)
{
const struct passwd *pas;
const char *crontab_dir = CRONTABS;
diff --git a/miscutils/eject.c b/miscutils/eject.c
index 746a0184e..3d27ce545 100644
--- a/miscutils/eject.c
+++ b/miscutils/eject.c
@@ -79,7 +79,7 @@ static void eject_cdrom(const int fd, const unsigned long flags,
}
int eject_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
-int eject_main(int argc, char **argv)
+int eject_main(int argc ATTRIBUTE_UNUSED, char **argv)
{
unsigned long flags;
const char *device;
diff --git a/miscutils/last.c b/miscutils/last.c
index fc5916ec2..f4d9a812e 100644
--- a/miscutils/last.c
+++ b/miscutils/last.c
@@ -27,7 +27,7 @@
#endif
int last_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
-int last_main(int argc, char **argv)
+int last_main(int argc, char **argv ATTRIBUTE_UNUSED)
{
struct utmp ut;
int n, file = STDIN_FILENO;
diff --git a/miscutils/microcom.c b/miscutils/microcom.c
index 5219335a6..5ce430a03 100644
--- a/miscutils/microcom.c
+++ b/miscutils/microcom.c
@@ -41,7 +41,7 @@ static int xset1(int fd, struct termios *tio, const char *device)
}
int microcom_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
-int microcom_main(int argc, char **argv)
+int microcom_main(int argc ATTRIBUTE_UNUSED, char **argv)
{
int sfd;
int nfd;
diff --git a/miscutils/strings.c b/miscutils/strings.c
index d75beccea..57a2c0a17 100644
--- a/miscutils/strings.c
+++ b/miscutils/strings.c
@@ -17,7 +17,7 @@
#define SIZE 8
int strings_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
-int strings_main(int argc, char **argv)
+int strings_main(int argc ATTRIBUTE_UNUSED, char **argv)
{
int n, c, status = EXIT_SUCCESS;
unsigned opt;