From 9d76f01669b1a4c02ade0e003744dfd853e079f5 Mon Sep 17 00:00:00 2001 From: dholland Date: Sat, 22 Mar 2014 22:09:14 +0000 Subject: Don't cast the return value of malloc. --- atc/list.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'atc/list.c') diff --git a/atc/list.c b/atc/list.c index e6012081..4fd52d7c 100644 --- a/atc/list.c +++ b/atc/list.c @@ -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 -- cgit v1.2.3