diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-03-17 09:00:54 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-03-17 09:00:54 +0000 |
commit | 68404f13d4bf4826e3609703dad5375763db28ab (patch) | |
tree | b89ed41daeb3a761ac9416a6eed090023b23e7e2 /miscutils | |
parent | a55bd05f3cea6c7cbfb45d15009cb70570c2a43b (diff) | |
download | busybox-w32-68404f13d4bf4826e3609703dad5375763db28ab.tar.gz busybox-w32-68404f13d4bf4826e3609703dad5375763db28ab.tar.bz2 busybox-w32-68404f13d4bf4826e3609703dad5375763db28ab.zip |
*: 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.c | 2 | ||||
-rw-r--r-- | miscutils/crond.c | 2 | ||||
-rw-r--r-- | miscutils/crontab.c | 2 | ||||
-rw-r--r-- | miscutils/eject.c | 2 | ||||
-rw-r--r-- | miscutils/last.c | 2 | ||||
-rw-r--r-- | miscutils/microcom.c | 2 | ||||
-rw-r--r-- | miscutils/strings.c | 2 |
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) | |||
103 | 103 | ||
104 | 104 | ||
105 | int chat_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 105 | int chat_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
106 | int chat_main(int argc, char **argv) | 106 | int chat_main(int argc ATTRIBUTE_UNUSED, char **argv) |
107 | { | 107 | { |
108 | // should we dump device output? to what fd? by default no. | 108 | // should we dump device output? to what fd? by default no. |
109 | // this can be controlled later via ECHO {ON|OFF} chat directive | 109 | // 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, ...) | |||
158 | } | 158 | } |
159 | 159 | ||
160 | int crond_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 160 | int crond_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
161 | int crond_main(int ac, char **av) | 161 | int crond_main(int ac ATTRIBUTE_UNUSED, char **av) |
162 | { | 162 | { |
163 | unsigned opt; | 163 | unsigned opt; |
164 | 164 | ||
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) | |||
88 | } | 88 | } |
89 | 89 | ||
90 | int crontab_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 90 | int crontab_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
91 | int crontab_main(int argc, char **argv) | 91 | int crontab_main(int argc ATTRIBUTE_UNUSED, char **argv) |
92 | { | 92 | { |
93 | const struct passwd *pas; | 93 | const struct passwd *pas; |
94 | const char *crontab_dir = CRONTABS; | 94 | 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, | |||
79 | } | 79 | } |
80 | 80 | ||
81 | int eject_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 81 | int eject_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
82 | int eject_main(int argc, char **argv) | 82 | int eject_main(int argc ATTRIBUTE_UNUSED, char **argv) |
83 | { | 83 | { |
84 | unsigned long flags; | 84 | unsigned long flags; |
85 | const char *device; | 85 | 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 @@ | |||
27 | #endif | 27 | #endif |
28 | 28 | ||
29 | int last_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 29 | int last_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
30 | int last_main(int argc, char **argv) | 30 | int last_main(int argc, char **argv ATTRIBUTE_UNUSED) |
31 | { | 31 | { |
32 | struct utmp ut; | 32 | struct utmp ut; |
33 | int n, file = STDIN_FILENO; | 33 | 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) | |||
41 | } | 41 | } |
42 | 42 | ||
43 | int microcom_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 43 | int microcom_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
44 | int microcom_main(int argc, char **argv) | 44 | int microcom_main(int argc ATTRIBUTE_UNUSED, char **argv) |
45 | { | 45 | { |
46 | int sfd; | 46 | int sfd; |
47 | int nfd; | 47 | 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 @@ | |||
17 | #define SIZE 8 | 17 | #define SIZE 8 |
18 | 18 | ||
19 | int strings_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 19 | int strings_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
20 | int strings_main(int argc, char **argv) | 20 | int strings_main(int argc ATTRIBUTE_UNUSED, char **argv) |
21 | { | 21 | { |
22 | int n, c, status = EXIT_SUCCESS; | 22 | int n, c, status = EXIT_SUCCESS; |
23 | unsigned opt; | 23 | unsigned opt; |