diff options
author | dholland <dholland@NetBSD.org> | 2008-02-24 05:53:33 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2008-02-24 05:53:33 +0000 |
commit | 54d758cb4f91850365584775a8a4a3ad42f135d4 (patch) | |
tree | 29075de59ece85f84e1a9f33539224b3e6cbfec8 /monop | |
parent | e68df2be2d86409745cee75571833732bdd20c9a (diff) | |
download | bsdgames-darwin-54d758cb4f91850365584775a8a4a3ad42f135d4.tar.gz bsdgames-darwin-54d758cb4f91850365584775a8a4a3ad42f135d4.tar.zst bsdgames-darwin-54d758cb4f91850365584775a8a4a3ad42f135d4.zip |
Don't cast the return value of calloc.
Diffstat (limited to 'monop')
-rw-r--r-- | monop/prop.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/monop/prop.c b/monop/prop.c index fcf2cd65..3e3d4677 100644 --- a/monop/prop.c +++ b/monop/prop.c @@ -1,4 +1,4 @@ -/* $NetBSD: prop.c,v 1.18 2008/02/24 03:56:49 christos Exp $ */ +/* $NetBSD: prop.c,v 1.19 2008/02/24 05:53:33 dholland Exp $ */ /* * Copyright (c) 1980, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)prop.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: prop.c,v 1.18 2008/02/24 03:56:49 christos Exp $"); +__RCSID("$NetBSD: prop.c,v 1.19 2008/02/24 05:53:33 dholland Exp $"); #endif #endif /* not lint */ @@ -71,7 +71,7 @@ add_list(plr, head, op_sqr) OWN *tp, *last_tp; OWN *op; - op = (OWN *)calloc(1, sizeof (OWN)); + op = calloc(1, sizeof (OWN)); if (op == NULL) errx(1, "out of memory"); op->sqr = &board[op_sqr]; |