summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-11-10 22:23:23 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-11-10 22:23:23 +1300
commit2dc5923a71ade73e80aef90d1091c390367878a9 (patch)
treeab5d195a94310988aa1e221e30a7826bc160ddc1
parentAdd spaces before asterisks in pointer type sigs (diff)
downloadtexad-2dc5923a71ade73e80aef90d1091c390367878a9.tar.gz
texad-2dc5923a71ade73e80aef90d1091c390367878a9.zip
Remove bad-practice malloc(3) casts
-rw-r--r--texad.c4
1 files 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));