summaryrefslogtreecommitdiff
path: root/console-tools
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-12-19 23:36:04 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-12-19 23:36:04 +0000
commitb95636c52fbb058a39548bcbc4e86456ebbd7b7b (patch)
tree0f82f8e3d225f3bcefdbf7070ae0716f1b309630 /console-tools
parent2375d75f3267e6e4370f221fea485eac8e73d402 (diff)
downloadbusybox-w32-b95636c52fbb058a39548bcbc4e86456ebbd7b7b.tar.gz
busybox-w32-b95636c52fbb058a39548bcbc4e86456ebbd7b7b.tar.bz2
busybox-w32-b95636c52fbb058a39548bcbc4e86456ebbd7b7b.zip
remove casts from xmalloc()
Diffstat (limited to 'console-tools')
-rw-r--r--console-tools/loadfont.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/console-tools/loadfont.c b/console-tools/loadfont.c
index 36f0e6da9..6aa739ba4 100644
--- a/console-tools/loadfont.c
+++ b/console-tools/loadfont.c
@@ -84,7 +84,7 @@ do_loadtable(int fd, unsigned char *inbuf, int tailsz, int fontsize)
84 uint16_t 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 = 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) {