Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/games/arithmetic remove unnecessary casts



details:   https://anonhg.NetBSD.org/src/rev/ac2abc54d8b1
branches:  trunk
changeset: 746994:ac2abc54d8b1
user:      dholland <dholland%NetBSD.org@localhost>
date:      Thu Aug 27 00:21:45 2009 +0000

description:
remove unnecessary casts

diffstat:

 games/arithmetic/arithmetic.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 868aca4c7f33 -r ac2abc54d8b1 games/arithmetic/arithmetic.c
--- a/games/arithmetic/arithmetic.c     Thu Aug 27 00:19:52 2009 +0000
+++ b/games/arithmetic/arithmetic.c     Thu Aug 27 00:21:45 2009 +0000
@@ -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 @@
 #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 @@
        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;



Home | Main Index | Thread Index | Old Index