more cast style consistency
This commit is contained in:
@@ -515,7 +515,7 @@ add_branch(
|
||||
|
||||
branch_num = find_branch(gd.dungeons[dgn].dname, pd);
|
||||
new_branch = (branch *) alloc(sizeof(branch));
|
||||
(void) memset((genericptr_t)new_branch, 0, sizeof(branch));
|
||||
(void) memset((genericptr_t) new_branch, 0, sizeof(branch));
|
||||
new_branch->next = (branch *) 0;
|
||||
new_branch->id = branch_id++;
|
||||
new_branch->type = correct_branch_type(&pd->tmpbranch[branch_num]);
|
||||
@@ -568,7 +568,7 @@ init_level(int dgn, int proto_index, struct proto_dungeon *pd)
|
||||
|
||||
pd->final_lev[proto_index] = new_level =
|
||||
(s_level *) alloc(sizeof(s_level));
|
||||
(void) memset((genericptr_t)new_level, 0, sizeof(s_level));
|
||||
(void) memset((genericptr_t) new_level, 0, sizeof(s_level));
|
||||
/* load new level with data */
|
||||
Strcpy(new_level->proto, tlevel->name);
|
||||
new_level->boneid = tlevel->boneschar;
|
||||
|
||||
Reference in New Issue
Block a user