Mercurial > mplayer.hg
diff libvo/font_load_ft.c @ 18878:3bf0d70b4c7f
rm unnecesary casts from void* - part 2
author | reynaldo |
---|---|
date | Sun, 02 Jul 2006 03:59:36 +0000 |
parents | 1629108cd5b0 |
children | e60c8c7399d2 |
line wrap: on
line diff
--- a/libvo/font_load_ft.c Sat Jul 01 22:15:37 2006 +0000 +++ b/libvo/font_load_ft.c Sun Jul 02 03:59:36 2006 +0000 @@ -618,9 +618,9 @@ desc->faces[pic_idx] = face; - desc->pic_a[pic_idx] = (raw_file*)malloc(sizeof(raw_file)); + desc->pic_a[pic_idx] = malloc(sizeof(raw_file)); if (!desc->pic_a[pic_idx]) return -1; - desc->pic_b[pic_idx] = (raw_file*)malloc(sizeof(raw_file)); + desc->pic_b[pic_idx] = malloc(sizeof(raw_file)); if (!desc->pic_b[pic_idx]) return -1; desc->pic_a[pic_idx]->bmp = NULL; @@ -628,11 +628,11 @@ desc->pic_b[pic_idx]->bmp = NULL; desc->pic_b[pic_idx]->pal = NULL; - desc->pic_a[pic_idx]->pal = (unsigned char*)malloc(sizeof(unsigned char)*256*3); + desc->pic_a[pic_idx]->pal = malloc(sizeof(unsigned char)*256*3); if (!desc->pic_a[pic_idx]->pal) return -1; for (i = 0; i<768; ++i) desc->pic_a[pic_idx]->pal[i] = i/3; - desc->pic_b[pic_idx]->pal = (unsigned char*)malloc(sizeof(unsigned char)*256*3); + desc->pic_b[pic_idx]->pal = malloc(sizeof(unsigned char)*256*3); if (!desc->pic_b[pic_idx]->pal) return -1; for (i = 0; i<768; ++i) desc->pic_b[pic_idx]->pal[i] = i/3; @@ -673,13 +673,13 @@ // fprintf(stderr, "o_r = %d\n", desc->tables.o_r); if (desc->tables.g_r) { - desc->tables.g = (unsigned*)malloc(desc->tables.g_w * sizeof(unsigned)); - desc->tables.gt2 = (unsigned*)malloc(256 * desc->tables.g_w * sizeof(unsigned)); + desc->tables.g = malloc(desc->tables.g_w * sizeof(unsigned)); + desc->tables.gt2 = malloc(256 * desc->tables.g_w * sizeof(unsigned)); if (desc->tables.g==NULL || desc->tables.gt2==NULL) { return -1; } } - desc->tables.om = (unsigned*)malloc(desc->tables.o_w*desc->tables.o_w * sizeof(unsigned)); + desc->tables.om = malloc(desc->tables.o_w*desc->tables.o_w * sizeof(unsigned)); desc->tables.omt = malloc(desc->tables.o_size*256); omtp = desc->tables.omt;