summaryrefslogtreecommitdiff
path: root/games/sail
diff options
context:
space:
mode:
authorPaul Janzen <pjanzen@cvs.openbsd.org>2001-02-17 20:15:01 +0000
committerPaul Janzen <pjanzen@cvs.openbsd.org>2001-02-17 20:15:01 +0000
commit541cb262e526b7415bb94badb53deeb08c633a4d (patch)
treef6a17c348e5c639103f64dd9f3ec509de629fbc0 /games/sail
parent5dc1778f37a1d6d773ec2209a474d8487b973125 (diff)
Use err() rather than errx() immediately after alloc failure.
Diffstat (limited to 'games/sail')
-rw-r--r--games/sail/pl_main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/games/sail/pl_main.c b/games/sail/pl_main.c
index 63f2b8fc63d..22ff6e9cf45 100644
--- a/games/sail/pl_main.c
+++ b/games/sail/pl_main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pl_main.c,v 1.6 1999/06/13 16:43:12 pjanzen Exp $ */
+/* $OpenBSD: pl_main.c,v 1.7 2001/02/17 20:15:00 pjanzen Exp $ */
/* $NetBSD: pl_main.c,v 1.5 1995/04/24 12:25:25 cgd Exp $ */
/*
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)pl_main.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$OpenBSD: pl_main.c,v 1.6 1999/06/13 16:43:12 pjanzen Exp $";
+static char rcsid[] = "$OpenBSD: pl_main.c,v 1.7 2001/02/17 20:15:00 pjanzen Exp $";
#endif
#endif /* not lint */
@@ -97,7 +97,7 @@ reprint:
foreachship(sp) {
if (sp->file == NULL &&
(sp->file = (struct File *)calloc(1, sizeof (struct File))) == NULL)
- errx(1, "out of memory");
+ err(1, NULL);
sp->file->index = sp - SHIP(0);
sp->file->stern = nat[sp->nationality]++;
sp->file->dir = sp->shipdir;