diff options
author | dholland <dholland@NetBSD.org> | 2009-03-14 19:36:42 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2009-03-14 19:36:42 +0000 |
commit | d07320e2ef20ae3e5a73228a41d85b69fb56d510 (patch) | |
tree | 6ab1aae9bfcec429e857c3458c6b933a71eee5e1 /sail | |
parent | fdc664b7bf17e7162301f1d0354f0094af2b08e5 (diff) | |
download | bsdgames-darwin-d07320e2ef20ae3e5a73228a41d85b69fb56d510.tar.gz bsdgames-darwin-d07320e2ef20ae3e5a73228a41d85b69fb56d510.tar.zst bsdgames-darwin-d07320e2ef20ae3e5a73228a41d85b69fb56d510.zip |
Don't cast the return value of calloc().
Diffstat (limited to 'sail')
-rw-r--r-- | sail/dr_main.c | 6 | ||||
-rw-r--r-- | sail/pl_main.c | 6 |
2 files changed, 6 insertions, 6 deletions
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); } 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); |