summaryrefslogtreecommitdiff
path: root/games/hunt/huntd
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/hunt/huntd
parent5c21feb489b7dd8e2c1faada3f182e9e1899ced8 (diff)
remove malloc/calloc/realloc* casts, due to stdlib.h being present; ok millert krw
Diffstat (limited to 'games/hunt/huntd')
-rw-r--r--games/hunt/huntd/answer.c4
-rw-r--r--games/hunt/huntd/execute.c4
-rw-r--r--games/hunt/huntd/expl.c4
-rw-r--r--games/hunt/huntd/shots.c4
4 files changed, 8 insertions, 8 deletions
diff --git a/games/hunt/huntd/answer.c b/games/hunt/huntd/answer.c
index c8ae243c655..19b519934a6 100644
--- a/games/hunt/huntd/answer.c
+++ b/games/hunt/huntd/answer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: answer.c,v 1.13 2014/05/25 17:39:07 tedu Exp $ */
+/* $OpenBSD: answer.c,v 1.14 2015/08/22 14:47:41 deraadt Exp $ */
/* $NetBSD: answer.c,v 1.3 1997/10/10 16:32:50 lukem Exp $ */
/*
* Copyright (c) 1983-2003, Regents of the University of California.
@@ -485,7 +485,7 @@ get_ident(sa, salen, uid, name, team)
}
else {
/* Alloc new entry -- it is released in clear_scores() */
- ip = (IDENT *) malloc(sizeof (IDENT));
+ ip = malloc(sizeof (IDENT));
if (ip == NULL) {
logit(LOG_ERR, "malloc");
/* Fourth down, time to punt */
diff --git a/games/hunt/huntd/execute.c b/games/hunt/huntd/execute.c
index c5ad00eba31..4706988f19b 100644
--- a/games/hunt/huntd/execute.c
+++ b/games/hunt/huntd/execute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: execute.c,v 1.8 2004/01/16 00:13:19 espie Exp $ */
+/* $OpenBSD: execute.c,v 1.9 2015/08/22 14:47:41 deraadt Exp $ */
/* $NetBSD: execute.c,v 1.2 1997/10/10 16:33:13 lukem Exp $ */
/*
* Copyright (c) 1983-2003, Regents of the University of California.
@@ -516,7 +516,7 @@ create_shot(type, y, x, face, charge, size, owner, score, expl, over)
{
BULLET *bp;
- bp = (BULLET *) malloc(sizeof (BULLET)); /* NOSTRICT */
+ bp = malloc(sizeof (BULLET)); /* NOSTRICT */
if (bp == NULL) {
logit(LOG_ERR, "malloc");
if (owner != NULL)
diff --git a/games/hunt/huntd/expl.c b/games/hunt/huntd/expl.c
index 5046c392c52..4bf8ba3fd47 100644
--- a/games/hunt/huntd/expl.c
+++ b/games/hunt/huntd/expl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: expl.c,v 1.9 2007/09/04 22:39:31 hshoexer Exp $ */
+/* $OpenBSD: expl.c,v 1.10 2015/08/22 14:47:41 deraadt Exp $ */
/* $NetBSD: expl.c,v 1.2 1997/10/10 16:33:18 lukem Exp $ */
/*
* Copyright (c) 1983-2003, Regents of the University of California.
@@ -58,7 +58,7 @@ showexpl(y, x, type)
return;
if (x < 0 || x >= WIDTH)
return;
- ep = (EXPL *) malloc(sizeof (EXPL)); /* NOSTRICT */
+ ep = malloc(sizeof (EXPL)); /* NOSTRICT */
if (ep == NULL) {
logit(LOG_ERR, "malloc");
return;
diff --git a/games/hunt/huntd/shots.c b/games/hunt/huntd/shots.c
index 00c79c34dad..30db0f1bc09 100644
--- a/games/hunt/huntd/shots.c
+++ b/games/hunt/huntd/shots.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: shots.c,v 1.9 2006/03/27 00:10:15 tedu Exp $ */
+/* $OpenBSD: shots.c,v 1.10 2015/08/22 14:47:41 deraadt Exp $ */
/* $NetBSD: shots.c,v 1.3 1997/10/11 08:13:50 lukem Exp $ */
/*
* Copyright (c) 1983-2003, Regents of the University of California.
@@ -875,7 +875,7 @@ chkslime(bp, next)
}
/* Duplicate the unit of slime: */
- nbp = (BULLET *) malloc(sizeof (BULLET));
+ nbp = malloc(sizeof (BULLET));
if (nbp == NULL) {
logit(LOG_ERR, "malloc");
return;