From 2dc5923a71ade73e80aef90d1091c390367878a9 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 10 Nov 2018 22:23:23 +1300 Subject: Remove bad-practice malloc(3) casts --- texad.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/texad.c b/texad.c index b20fe1f..832b0bc 100644 --- a/texad.c +++ b/texad.c @@ -74,8 +74,8 @@ struct world *genesis(void) unsigned int i; - w = (struct world*) malloc(sizeof(struct world)); - p = (struct player*) malloc(sizeof(struct player)); + w = malloc(sizeof(struct world)); + p = malloc(sizeof(struct player)); for (i = 0; i < sizeof(r) / sizeof(struct room*); i++) { r[i] = (struct room*) malloc(sizeof(struct room)); -- cgit v1.2.3