diff options
author | Mark Whitley <markw@lineo.com> | 2001-01-23 22:30:04 +0000 |
---|---|---|
committer | Mark Whitley <markw@lineo.com> | 2001-01-23 22:30:04 +0000 |
commit | 59ab025363d884deb2013dcaae6c968585a6ec72 (patch) | |
tree | 852d97bdc34c44dbcf29cc8b5cd9257a8c90f7b3 /console-tools | |
parent | 2b8d07c590249991fae975652aae86f5fca91f81 (diff) | |
download | busybox-w32-59ab025363d884deb2013dcaae6c968585a6ec72.tar.gz busybox-w32-59ab025363d884deb2013dcaae6c968585a6ec72.tar.bz2 busybox-w32-59ab025363d884deb2013dcaae6c968585a6ec72.zip |
#define -> static const int. Also got rid of some big static buffers.
Diffstat (limited to 'console-tools')
-rw-r--r-- | console-tools/chvt.c | 4 | ||||
-rw-r--r-- | console-tools/deallocvt.c | 2 | ||||
-rw-r--r-- | console-tools/dumpkmap.c | 6 | ||||
-rw-r--r-- | console-tools/loadfont.c | 12 | ||||
-rw-r--r-- | console-tools/loadkmap.c | 6 | ||||
-rw-r--r-- | console-tools/setkeycodes.c | 2 |
6 files changed, 16 insertions, 16 deletions
diff --git a/console-tools/chvt.c b/console-tools/chvt.c index 76d4b53a6..c715e67de 100644 --- a/console-tools/chvt.c +++ b/console-tools/chvt.c | |||
@@ -12,8 +12,8 @@ | |||
12 | #include <sys/ioctl.h> | 12 | #include <sys/ioctl.h> |
13 | 13 | ||
14 | /* From <linux/vt.h> */ | 14 | /* From <linux/vt.h> */ |
15 | #define VT_ACTIVATE 0x5606 /* make vt active */ | 15 | static const int VT_ACTIVATE = 0x5606; /* make vt active */ |
16 | #define VT_WAITACTIVE 0x5607 /* wait for vt active */ | 16 | static const int VT_WAITACTIVE = 0x5607; /* wait for vt active */ |
17 | 17 | ||
18 | int chvt_main(int argc, char **argv) | 18 | int chvt_main(int argc, char **argv) |
19 | { | 19 | { |
diff --git a/console-tools/deallocvt.c b/console-tools/deallocvt.c index 3dd90c0e9..fad7a2bb2 100644 --- a/console-tools/deallocvt.c +++ b/console-tools/deallocvt.c | |||
@@ -11,7 +11,7 @@ | |||
11 | #include <sys/ioctl.h> | 11 | #include <sys/ioctl.h> |
12 | 12 | ||
13 | /* From <linux/vt.h> */ | 13 | /* From <linux/vt.h> */ |
14 | #define VT_DISALLOCATE 0x5608 /* free memory associated to vt */ | 14 | static const int VT_DISALLOCATE = 0x5608; /* free memory associated to vt */ |
15 | 15 | ||
16 | int deallocvt_main(int argc, char *argv[]) | 16 | int deallocvt_main(int argc, char *argv[]) |
17 | { | 17 | { |
diff --git a/console-tools/dumpkmap.c b/console-tools/dumpkmap.c index c5a2ea74e..b438ba271 100644 --- a/console-tools/dumpkmap.c +++ b/console-tools/dumpkmap.c | |||
@@ -32,11 +32,11 @@ struct kbentry { | |||
32 | unsigned char kb_index; | 32 | unsigned char kb_index; |
33 | unsigned short kb_value; | 33 | unsigned short kb_value; |
34 | }; | 34 | }; |
35 | #define KDGKBENT 0x4B46 /* gets one entry in translation table */ | 35 | static const int KDGKBENT = 0x4B46; /* gets one entry in translation table */ |
36 | 36 | ||
37 | /* From <linux/keyboard.h> */ | 37 | /* From <linux/keyboard.h> */ |
38 | #define NR_KEYS 128 | 38 | static const int NR_KEYS = 128; |
39 | #define MAX_NR_KEYMAPS 256 | 39 | static const int MAX_NR_KEYMAPS = 256; |
40 | 40 | ||
41 | int dumpkmap_main(int argc, char **argv) | 41 | int dumpkmap_main(int argc, char **argv) |
42 | { | 42 | { |
diff --git a/console-tools/loadfont.c b/console-tools/loadfont.c index 13a196fb0..08e07618e 100644 --- a/console-tools/loadfont.c +++ b/console-tools/loadfont.c | |||
@@ -21,13 +21,13 @@ | |||
21 | #include <sys/kd.h> | 21 | #include <sys/kd.h> |
22 | #include <endian.h> | 22 | #include <endian.h> |
23 | 23 | ||
24 | #define PSF_MAGIC1 0x36 | 24 | static const int PSF_MAGIC1 = 0x36; |
25 | #define PSF_MAGIC2 0x04 | 25 | static const int PSF_MAGIC2 = 0x04; |
26 | 26 | ||
27 | #define PSF_MODE512 0x01 | 27 | static const int PSF_MODE512 = 0x01; |
28 | #define PSF_MODEHASTAB 0x02 | 28 | static const int PSF_MODEHASTAB = 0x02; |
29 | #define PSF_MAXMODE 0x03 | 29 | static const int PSF_MAXMODE = 0x03; |
30 | #define PSF_SEPARATOR 0xFFFF | 30 | static const int PSF_SEPARATOR = 0xFFFF; |
31 | 31 | ||
32 | struct psf_header { | 32 | struct psf_header { |
33 | unsigned char magic1, magic2; /* Magic number */ | 33 | unsigned char magic1, magic2; /* Magic number */ |
diff --git a/console-tools/loadkmap.c b/console-tools/loadkmap.c index fc2439864..43c1cc795 100644 --- a/console-tools/loadkmap.c +++ b/console-tools/loadkmap.c | |||
@@ -34,11 +34,11 @@ struct kbentry { | |||
34 | unsigned char kb_index; | 34 | unsigned char kb_index; |
35 | unsigned short kb_value; | 35 | unsigned short kb_value; |
36 | }; | 36 | }; |
37 | #define KDSKBENT 0x4B47 /* sets one entry in translation table */ | 37 | static const int KDSKBENT = 0x4B47; /* sets one entry in translation table */ |
38 | 38 | ||
39 | /* From <linux/keyboard.h> */ | 39 | /* From <linux/keyboard.h> */ |
40 | #define NR_KEYS 128 | 40 | static const int NR_KEYS = 128; |
41 | #define MAX_NR_KEYMAPS 256 | 41 | static const int MAX_NR_KEYMAPS = 256; |
42 | 42 | ||
43 | int loadkmap_main(int argc, char **argv) | 43 | int loadkmap_main(int argc, char **argv) |
44 | { | 44 | { |
diff --git a/console-tools/setkeycodes.c b/console-tools/setkeycodes.c index 7db398d77..be9b1b797 100644 --- a/console-tools/setkeycodes.c +++ b/console-tools/setkeycodes.c | |||
@@ -33,7 +33,7 @@ | |||
33 | struct kbkeycode { | 33 | struct kbkeycode { |
34 | unsigned int scancode, keycode; | 34 | unsigned int scancode, keycode; |
35 | }; | 35 | }; |
36 | #define KDSETKEYCODE 0x4B4D /* write kernel keycode table entry */ | 36 | static const int KDSETKEYCODE = 0x4B4D; /* write kernel keycode table entry */ |
37 | 37 | ||
38 | extern int | 38 | extern int |
39 | setkeycodes_main(int argc, char** argv) | 39 | setkeycodes_main(int argc, char** argv) |