Remove a bunch of redundant casts.

This commit is contained in:
Markus Armbruster 2005-06-12 06:31:48 +00:00
parent ee6d72f3b8
commit 4f59fc9967
125 changed files with 417 additions and 432 deletions

View file

@ -70,10 +70,10 @@ satmap(int x, int y, int eff, int range, int flags, int type)
return;
if (!radbuf)
radbuf = (s_char *)malloc((WORLD_Y * (WORLD_X + 1)) *
radbuf = malloc((WORLD_Y * (WORLD_X + 1)) *
sizeof(s_char));
if (!rad) {
rad = (s_char **)malloc(WORLD_Y * sizeof(s_char *));
rad = malloc(WORLD_Y * sizeof(s_char *));
if (rad && radbuf) {
for (rx = 0; rx < WORLD_Y; rx++)
rad[rx] = &radbuf[(WORLD_X + 1) * rx];