diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-12-19 20:32:02 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-12-19 20:32:02 +0000 |
commit | 28703015ab71784f40bc97f720ed900e26bd03ca (patch) | |
tree | ff0f9a21d1822c9a2f35819db4156d9555f56116 /console-tools | |
parent | f58906b6463436f6a19f72d43c3ab4ba69d79104 (diff) | |
download | busybox-w32-28703015ab71784f40bc97f720ed900e26bd03ca.tar.gz busybox-w32-28703015ab71784f40bc97f720ed900e26bd03ca.tar.bz2 busybox-w32-28703015ab71784f40bc97f720ed900e26bd03ca.zip |
u_short, ulong exterminated
fdiskXXX: add a bit of sanity (not enough by far)
Diffstat (limited to 'console-tools')
-rw-r--r-- | console-tools/loadfont.c | 4 | ||||
-rw-r--r-- | console-tools/loadkmap.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/console-tools/loadfont.c b/console-tools/loadfont.c index 5a05876c2..36f0e6da9 100644 --- a/console-tools/loadfont.c +++ b/console-tools/loadfont.c | |||
@@ -81,14 +81,14 @@ do_loadtable(int fd, unsigned char *inbuf, int tailsz, int fontsize) | |||
81 | struct unipair *up; | 81 | struct unipair *up; |
82 | int ct = 0, maxct; | 82 | int ct = 0, maxct; |
83 | int glyph; | 83 | int glyph; |
84 | u_short unicode; | 84 | uint16_t unicode; |
85 | 85 | ||
86 | maxct = tailsz; /* more than enough */ | 86 | maxct = tailsz; /* more than enough */ |
87 | up = (struct unipair *) xmalloc(maxct * sizeof(struct unipair)); | 87 | up = (struct unipair *) xmalloc(maxct * sizeof(struct unipair)); |
88 | 88 | ||
89 | for (glyph = 0; glyph < fontsize; glyph++) { | 89 | for (glyph = 0; glyph < fontsize; glyph++) { |
90 | while (tailsz >= 2) { | 90 | while (tailsz >= 2) { |
91 | unicode = (((u_short) inbuf[1]) << 8) + inbuf[0]; | 91 | unicode = (((uint16_t) inbuf[1]) << 8) + inbuf[0]; |
92 | tailsz -= 2; | 92 | tailsz -= 2; |
93 | inbuf += 2; | 93 | inbuf += 2; |
94 | if (unicode == PSF_SEPARATOR) | 94 | if (unicode == PSF_SEPARATOR) |
diff --git a/console-tools/loadkmap.c b/console-tools/loadkmap.c index ce9b6817c..74a2378b4 100644 --- a/console-tools/loadkmap.c +++ b/console-tools/loadkmap.c | |||
@@ -29,7 +29,7 @@ int loadkmap_main(int argc, char **argv) | |||
29 | { | 29 | { |
30 | struct kbentry ke; | 30 | struct kbentry ke; |
31 | int i, j, fd; | 31 | int i, j, fd; |
32 | u_short ibuff[NR_KEYS]; | 32 | uint16_t ibuff[NR_KEYS]; |
33 | char flags[MAX_NR_KEYMAPS]; | 33 | char flags[MAX_NR_KEYMAPS]; |
34 | char buff[7]; | 34 | char buff[7]; |
35 | 35 | ||
@@ -46,7 +46,7 @@ int loadkmap_main(int argc, char **argv) | |||
46 | 46 | ||
47 | for (i = 0; i < MAX_NR_KEYMAPS; i++) { | 47 | for (i = 0; i < MAX_NR_KEYMAPS; i++) { |
48 | if (flags[i] == 1) { | 48 | if (flags[i] == 1) { |
49 | xread(0, ibuff, NR_KEYS * sizeof(u_short)); | 49 | xread(0, ibuff, NR_KEYS * sizeof(uint16_t)); |
50 | for (j = 0; j < NR_KEYS; j++) { | 50 | for (j = 0; j < NR_KEYS; j++) { |
51 | ke.kb_index = j; | 51 | ke.kb_index = j; |
52 | ke.kb_table = i; | 52 | ke.kb_table = i; |