summaryrefslogtreecommitdiff
path: root/games/adventure
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-08-22 14:47:42 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-08-22 14:47:42 +0000
commitfc43d761647911712e283aebdd395fc5fdf2ef92 (patch)
treedc18572a7fdd2a295250a5a1d93dd8a176988fdf /games/adventure
parent5c21feb489b7dd8e2c1faada3f182e9e1899ced8 (diff)
remove malloc/calloc/realloc* casts, due to stdlib.h being present; ok millert krw
Diffstat (limited to 'games/adventure')
-rw-r--r--games/adventure/io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/games/adventure/io.c b/games/adventure/io.c
index 4c02ccb096e..deff7e487e7 100644
--- a/games/adventure/io.c
+++ b/games/adventure/io.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: io.c,v 1.19 2014/12/08 21:56:27 deraadt Exp $ */
+/* $OpenBSD: io.c,v 1.20 2015/08/22 14:47:40 deraadt Exp $ */
/* $NetBSD: io.c,v 1.3 1995/04/24 12:21:37 cgd Exp $ */
/*-
@@ -572,7 +572,7 @@ pspeak(int m, int skip)
char *tbuf;
msg = &ptext[m];
- if ((tbuf = (char *) malloc(msg->txtlen + 1)) == 0)
+ if ((tbuf = malloc(msg->txtlen + 1)) == 0)
err(1, NULL);
memcpy(tbuf, msg->seekadr, msg->txtlen + 1); /* Room to null */
s = tbuf;