diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-11-10 22:23:23 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-11-10 22:23:23 +1300 |
commit | 2dc5923a71ade73e80aef90d1091c390367878a9 (patch) | |
tree | ab5d195a94310988aa1e221e30a7826bc160ddc1 | |
parent | Add spaces before asterisks in pointer type sigs (diff) | |
download | texad-2dc5923a71ade73e80aef90d1091c390367878a9.tar.gz texad-2dc5923a71ade73e80aef90d1091c390367878a9.zip |
Remove bad-practice malloc(3) casts
-rw-r--r-- | texad.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)); |