remove casts from xmalloc()

This commit is contained in:
Denis Vlasenko
2006-12-19 23:36:04 +00:00
parent 2375d75f32
commit b95636c52f
15 changed files with 25 additions and 27 deletions

View File

@ -84,7 +84,7 @@ do_loadtable(int fd, unsigned char *inbuf, int tailsz, int fontsize)
uint16_t unicode;
maxct = tailsz; /* more than enough */
up = (struct unipair *) xmalloc(maxct * sizeof(struct unipair));
up = xmalloc(maxct * sizeof(struct unipair));
for (glyph = 0; glyph < fontsize; glyph++) {
while (tailsz >= 2) {