aboutsummaryrefslogtreecommitdiff
path: root/console-tools
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-02-03 17:28:39 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-02-03 17:28:39 +0000
commit06af2165288cd6516b89001ec9e24992619230e0 (patch)
tree840d22e507465aa6eb27c30c7ab8e80d9c469ae0 /console-tools
parentc7ba8b9d6c926231c1c191136b1ea0bc14b87771 (diff)
downloadbusybox-w32-06af2165288cd6516b89001ec9e24992619230e0.tar.gz
busybox-w32-06af2165288cd6516b89001ec9e24992619230e0.tar.bz2
busybox-w32-06af2165288cd6516b89001ec9e24992619230e0.zip
suppress warnings about easch <applet>_main() having
no preceding prototype
Diffstat (limited to 'console-tools')
-rw-r--r--console-tools/chvt.c1
-rw-r--r--console-tools/clear.c1
-rw-r--r--console-tools/deallocvt.c1
-rw-r--r--console-tools/dumpkmap.c7
-rw-r--r--console-tools/loadfont.c1
-rw-r--r--console-tools/loadkmap.c1
-rw-r--r--console-tools/openvt.c1
-rw-r--r--console-tools/reset.c1
-rw-r--r--console-tools/resize.c1
-rw-r--r--console-tools/setconsole.c1
-rw-r--r--console-tools/setkeycodes.c7
11 files changed, 15 insertions, 8 deletions
diff --git a/console-tools/chvt.c b/console-tools/chvt.c
index bbc5a9c31..50908115c 100644
--- a/console-tools/chvt.c
+++ b/console-tools/chvt.c
@@ -15,6 +15,7 @@ enum {
15 VT_WAITACTIVE = 0x5607 /* wait for vt active */ 15 VT_WAITACTIVE = 0x5607 /* wait for vt active */
16}; 16};
17 17
18int chvt_main(int argc, char **argv);
18int chvt_main(int argc, char **argv) 19int chvt_main(int argc, char **argv)
19{ 20{
20 int fd, num; 21 int fd, num;
diff --git a/console-tools/clear.c b/console-tools/clear.c
index 9686d5004..8e34d6d9a 100644
--- a/console-tools/clear.c
+++ b/console-tools/clear.c
@@ -15,6 +15,7 @@
15#include "busybox.h" 15#include "busybox.h"
16 16
17 17
18int clear_main(int argc, char **argv);
18int clear_main(int argc, char **argv) 19int clear_main(int argc, char **argv)
19{ 20{
20 return printf("\033[H\033[J") != 6; 21 return printf("\033[H\033[J") != 6;
diff --git a/console-tools/deallocvt.c b/console-tools/deallocvt.c
index cd581b1c8..81ea68ebb 100644
--- a/console-tools/deallocvt.c
+++ b/console-tools/deallocvt.c
@@ -15,6 +15,7 @@
15/* From <linux/vt.h> */ 15/* From <linux/vt.h> */
16enum { VT_DISALLOCATE = 0x5608 }; /* free memory associated to vt */ 16enum { VT_DISALLOCATE = 0x5608 }; /* free memory associated to vt */
17 17
18int deallocvt_main(int argc, char *argv[]);
18int deallocvt_main(int argc, char *argv[]) 19int deallocvt_main(int argc, char *argv[])
19{ 20{
20 /* num = 0 deallocate all unused consoles */ 21 /* num = 0 deallocate all unused consoles */
diff --git a/console-tools/dumpkmap.c b/console-tools/dumpkmap.c
index 7c6633ae8..0c1914830 100644
--- a/console-tools/dumpkmap.c
+++ b/console-tools/dumpkmap.c
@@ -22,18 +22,19 @@ struct kbentry {
22#define NR_KEYS 128 22#define NR_KEYS 128
23#define MAX_NR_KEYMAPS 256 23#define MAX_NR_KEYMAPS 256
24 24
25int dumpkmap_main(int argc, char **argv);
25int dumpkmap_main(int argc, char **argv) 26int dumpkmap_main(int argc, char **argv)
26{ 27{
27 struct kbentry ke; 28 struct kbentry ke;
28 int i, j, fd; 29 int i, j, fd;
29 char flags[MAX_NR_KEYMAPS], magic[] = "bkeymap"; 30 char flags[MAX_NR_KEYMAPS];
30 31
31 if (argc >= 2 && *argv[1] == '-') 32 if (argc >= 2 && argv[1][0] == '-')
32 bb_show_usage(); 33 bb_show_usage();
33 34
34 fd = xopen(CURRENT_VC, O_RDWR); 35 fd = xopen(CURRENT_VC, O_RDWR);
35 36
36 write(1, magic, 7); 37 write(1, "bkeymap", 7);
37 38
38 /* Here we want to set everything to 0 except for indexes: 39 /* Here we want to set everything to 0 except for indexes:
39 * [0-2] [4-6] [8-10] [12] */ 40 * [0-2] [4-6] [8-10] [12] */
diff --git a/console-tools/loadfont.c b/console-tools/loadfont.c
index 6aa739ba4..f691b11af 100644
--- a/console-tools/loadfont.c
+++ b/console-tools/loadfont.c
@@ -30,6 +30,7 @@ struct psf_header {
30 30
31static void loadnewfont(int fd); 31static void loadnewfont(int fd);
32 32
33int loadfont_main(int argc, char **argv);
33int loadfont_main(int argc, char **argv) 34int loadfont_main(int argc, char **argv)
34{ 35{
35 int fd; 36 int fd;
diff --git a/console-tools/loadkmap.c b/console-tools/loadkmap.c
index 74a2378b4..a141435e2 100644
--- a/console-tools/loadkmap.c
+++ b/console-tools/loadkmap.c
@@ -25,6 +25,7 @@ struct kbentry {
25#define NR_KEYS 128 25#define NR_KEYS 128
26#define MAX_NR_KEYMAPS 256 26#define MAX_NR_KEYMAPS 256
27 27
28int loadkmap_main(int argc, char **argv);
28int loadkmap_main(int argc, char **argv) 29int loadkmap_main(int argc, char **argv)
29{ 30{
30 struct kbentry ke; 31 struct kbentry ke;
diff --git a/console-tools/openvt.c b/console-tools/openvt.c
index c7b3e4fa4..9296219bd 100644
--- a/console-tools/openvt.c
+++ b/console-tools/openvt.c
@@ -12,6 +12,7 @@
12 12
13#include "busybox.h" 13#include "busybox.h"
14 14
15int openvt_main(int argc, char **argv);
15int openvt_main(int argc, char **argv) 16int openvt_main(int argc, char **argv)
16{ 17{
17 int fd; 18 int fd;
diff --git a/console-tools/reset.c b/console-tools/reset.c
index 26aab667b..03b078c5d 100644
--- a/console-tools/reset.c
+++ b/console-tools/reset.c
@@ -15,6 +15,7 @@
15#include <unistd.h> 15#include <unistd.h>
16#include "busybox.h" 16#include "busybox.h"
17 17
18int reset_main(int argc, char **argv);
18int reset_main(int argc, char **argv) 19int reset_main(int argc, char **argv)
19{ 20{
20 if (isatty(1)) { 21 if (isatty(1)) {
diff --git a/console-tools/resize.c b/console-tools/resize.c
index c405629aa..2fe5526fb 100644
--- a/console-tools/resize.c
+++ b/console-tools/resize.c
@@ -9,6 +9,7 @@
9/* no options, no getopt */ 9/* no options, no getopt */
10#include "busybox.h" 10#include "busybox.h"
11 11
12int resize_main(int argc, char **argv);
12int resize_main(int argc, char **argv) 13int resize_main(int argc, char **argv)
13{ 14{
14 struct termios old, new; 15 struct termios old, new;
diff --git a/console-tools/setconsole.c b/console-tools/setconsole.c
index ef81f298b..6621d25f8 100644
--- a/console-tools/setconsole.c
+++ b/console-tools/setconsole.c
@@ -18,6 +18,7 @@ static const struct option setconsole_long_options[] = {
18 18
19#define OPT_SETCONS_RESET 1 19#define OPT_SETCONS_RESET 1
20 20
21int setconsole_main(int argc, char **argv);
21int setconsole_main(int argc, char **argv) 22int setconsole_main(int argc, char **argv)
22{ 23{
23 unsigned long flags; 24 unsigned long flags;
diff --git a/console-tools/setkeycodes.c b/console-tools/setkeycodes.c
index d82525786..ff137d562 100644
--- a/console-tools/setkeycodes.c
+++ b/console-tools/setkeycodes.c
@@ -9,9 +9,6 @@
9 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 9 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
10 */ 10 */
11 11
12#include <stdio.h>
13#include <stdlib.h>
14#include <fcntl.h>
15#include <sys/ioctl.h> 12#include <sys/ioctl.h>
16#include "busybox.h" 13#include "busybox.h"
17 14
@@ -24,8 +21,8 @@ enum {
24 KDSETKEYCODE = 0x4B4D /* write kernel keycode table entry */ 21 KDSETKEYCODE = 0x4B4D /* write kernel keycode table entry */
25}; 22};
26 23
27extern int 24int setkeycodes_main(int argc, char** argv);
28setkeycodes_main(int argc, char** argv) 25int setkeycodes_main(int argc, char** argv)
29{ 26{
30 int fd, sc; 27 int fd, sc;
31 struct kbkeycode a; 28 struct kbkeycode a;