diff options
author | dholland <dholland@NetBSD.org> | 2009-08-27 00:21:45 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2009-08-27 00:21:45 +0000 |
commit | 6f53e6c21ed9666d8fb9e5be8e205fca504e2d17 (patch) | |
tree | f7a9f82bcd17c266bef7dbd2dde6851ef1753241 /arithmetic | |
parent | f5ed7a7689befa19412b81d396db6519104194c0 (diff) | |
download | bsdgames-darwin-6f53e6c21ed9666d8fb9e5be8e205fca504e2d17.tar.gz bsdgames-darwin-6f53e6c21ed9666d8fb9e5be8e205fca504e2d17.tar.zst bsdgames-darwin-6f53e6c21ed9666d8fb9e5be8e205fca504e2d17.zip |
remove unnecessary casts
Diffstat (limited to 'arithmetic')
-rw-r--r-- | arithmetic/arithmetic.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arithmetic/arithmetic.c b/arithmetic/arithmetic.c index db43730c..696208c6 100644 --- a/arithmetic/arithmetic.c +++ b/arithmetic/arithmetic.c @@ -1,4 +1,4 @@ -/* $NetBSD: arithmetic.c,v 1.24 2009/08/12 04:30:21 dholland Exp $ */ +/* $NetBSD: arithmetic.c,v 1.25 2009/08/27 00:21:45 dholland Exp $ */ /* * Copyright (c) 1989, 1993 @@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\ #if 0 static char sccsid[] = "@(#)arithmetic.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: arithmetic.c,v 1.24 2009/08/12 04:30:21 dholland Exp $"); +__RCSID("$NetBSD: arithmetic.c,v 1.25 2009/08/27 00:21:45 dholland Exp $"); #endif #endif /* not lint */ @@ -309,7 +309,7 @@ penalise(value, op, 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; |