From d07320e2ef20ae3e5a73228a41d85b69fb56d510 Mon Sep 17 00:00:00 2001 From: dholland Date: Sat, 14 Mar 2009 19:36:42 +0000 Subject: Don't cast the return value of calloc(). --- sail/pl_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sail/pl_main.c') diff --git a/sail/pl_main.c b/sail/pl_main.c index e1aba4b9..e13136a7 100644 --- a/sail/pl_main.c +++ b/sail/pl_main.c @@ -1,4 +1,4 @@ -/* $NetBSD: pl_main.c,v 1.22 2009/03/14 19:35:13 dholland Exp $ */ +/* $NetBSD: pl_main.c,v 1.23 2009/03/14 19:36:42 dholland Exp $ */ /* * Copyright (c) 1983, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)pl_main.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: pl_main.c,v 1.22 2009/03/14 19:35:13 dholland Exp $"); +__RCSID("$NetBSD: pl_main.c,v 1.23 2009/03/14 19:36:42 dholland Exp $"); #endif #endif /* not lint */ @@ -99,7 +99,7 @@ reprint: nat[n] = 0; foreachship(sp) { if (sp->file == NULL && - (sp->file = (struct File *)calloc(1, sizeof (struct File))) == NULL) { + (sp->file = calloc(1, sizeof (struct File))) == NULL) { err(1, "calloc"); } sp->file->index = sp - SHIP(0); -- cgit v1.2.3-56-ge451