diff options
author | 2014-03-22 22:09:14 +0000 | |
---|---|---|
committer | 2014-03-22 22:09:14 +0000 | |
commit | 9d76f01669b1a4c02ade0e003744dfd853e079f5 (patch) | |
tree | ce49fc8983b6418bd5ff853d728ca682e65a8efb /atc/list.c | |
parent | 7ab5b02c0c860845dbe12431fdfde7a094f7ac18 (diff) | |
download | bsdgames-darwin-9d76f01669b1a4c02ade0e003744dfd853e079f5.tar.gz bsdgames-darwin-9d76f01669b1a4c02ade0e003744dfd853e079f5.tar.zst bsdgames-darwin-9d76f01669b1a4c02ade0e003744dfd853e079f5.zip |
Don't cast the return value of malloc.
Diffstat (limited to 'atc/list.c')
-rw-r--r-- | atc/list.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $NetBSD: list.c,v 1.7 2005/07/01 00:48:34 jmc Exp $ */ +/* $NetBSD: list.c,v 1.8 2014/03/22 22:09:14 dholland Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -46,7 +46,7 @@ #if 0 static char sccsid[] = "@(#)list.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: list.c,v 1.7 2005/07/01 00:48:34 jmc Exp $"); +__RCSID("$NetBSD: list.c,v 1.8 2014/03/22 22:09:14 dholland Exp $"); #endif #endif /* not lint */ @@ -55,7 +55,7 @@ __RCSID("$NetBSD: list.c,v 1.7 2005/07/01 00:48:34 jmc Exp $"); PLANE * newplane(void) { - return ((PLANE *) calloc(1, sizeof (PLANE))); + return calloc(1, sizeof (PLANE)); } void |