From e55a4c69ad6dfa55e6a3262864f6dce13f495ba3 Mon Sep 17 00:00:00 2001 From: jsm Date: Sun, 9 Jan 2000 17:17:19 +0000 Subject: Use err(1, NULL) and warn(NULL) for `out of memory' error messages. --- worm/worm.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'worm') diff --git a/worm/worm.c b/worm/worm.c index 25d84c3b..1a03ee72 100644 --- a/worm/worm.c +++ b/worm/worm.c @@ -1,4 +1,4 @@ -/* $NetBSD: worm.c,v 1.17 1999/10/26 06:35:49 cgd Exp $ */ +/* $NetBSD: worm.c,v 1.18 2000/01/09 17:17:21 jsm Exp $ */ /* * Copyright (c) 1980, 1993 @@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\ #if 0 static char sccsid[] = "@(#)worm.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: worm.c,v 1.17 1999/10/26 06:35:49 cgd Exp $"); +__RCSID("$NetBSD: worm.c,v 1.18 2000/01/09 17:17:21 jsm Exp $"); #endif #endif /* not lint */ @@ -157,7 +157,7 @@ life() np = NULL; head = newlink(); if (head == NULL) - errx(1, "out of memory"); + err(1, NULL); head->x = start_len+2; head->y = 12; head->next = NULL; @@ -165,7 +165,7 @@ life() for (i = 0, bp = head; i < start_len; i++, bp = np) { np = newlink(); if (np == NULL) - errx(1, "out of memory"); + err(1, NULL); np->next = bp; bp->prev = np; np->x = bp->x - 1; @@ -312,7 +312,7 @@ process(ch) else if(ch != ' ') crash(); nh = newlink(); if (nh == NULL) - errx(1, "out of memory"); + err(1, NULL); nh->next = NULL; nh->prev = head; head->next = nh; -- cgit v1.2.3-56-ge451