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/dr_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sail/dr_main.c') diff --git a/sail/dr_main.c b/sail/dr_main.c index f264b347..71c141dd 100644 --- a/sail/dr_main.c +++ b/sail/dr_main.c @@ -1,4 +1,4 @@ -/* $NetBSD: dr_main.c,v 1.13 2009/03/02 06:44:22 dholland Exp $ */ +/* $NetBSD: dr_main.c,v 1.14 2009/03/14 19:36:42 dholland Exp $ */ /* * Copyright (c) 1983, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)dr_main.c 8.2 (Berkeley) 4/16/94"; #else -__RCSID("$NetBSD: dr_main.c,v 1.13 2009/03/02 06:44:22 dholland Exp $"); +__RCSID("$NetBSD: dr_main.c,v 1.14 2009/03/14 19:36:42 dholland Exp $"); #endif #endif /* not lint */ @@ -69,7 +69,7 @@ dr_main(void) 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) { fprintf(stderr, "DRIVER: Out of memory.\n"); exit(1); } -- cgit v1.2.3