summaryrefslogtreecommitdiff
path: root/games/arithmetic
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/arithmetic
parent5c21feb489b7dd8e2c1faada3f182e9e1899ced8 (diff)
remove malloc/calloc/realloc* casts, due to stdlib.h being present; ok millert krw
Diffstat (limited to 'games/arithmetic')
-rw-r--r--games/arithmetic/arithmetic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/games/arithmetic/arithmetic.c b/games/arithmetic/arithmetic.c
index 0c14c265d25..c7796e0986a 100644
--- a/games/arithmetic/arithmetic.c
+++ b/games/arithmetic/arithmetic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: arithmetic.c,v 1.18 2013/08/29 20:22:09 naddy Exp $ */
+/* $OpenBSD: arithmetic.c,v 1.19 2015/08/22 14:47:41 deraadt Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -284,7 +284,7 @@ penalise(int value, int op, int operand)
struct penalty *p;
op = opnum(op);
- if ((p = (struct penalty *)malloc((u_int)sizeof(*p))) == NULL)
+ if ((p = malloc(sizeof(*p))) == NULL)
return;
p->next = penlist[op][operand];
penlist[op][operand] = p;