From 00c616df1fcdefe33be74ec3f41f39b0c3852e5c Mon Sep 17 00:00:00 2001 From: lukem Date: Sat, 11 Oct 1997 08:13:40 +0000 Subject: use err/warn instead of perror --- hunt/huntd/shots.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'hunt/huntd/shots.c') diff --git a/hunt/huntd/shots.c b/hunt/huntd/shots.c index d0dfcf90..b4080dbd 100644 --- a/hunt/huntd/shots.c +++ b/hunt/huntd/shots.c @@ -1,4 +1,4 @@ -/* $NetBSD: shots.c,v 1.2 1997/10/10 16:33:54 lukem Exp $ */ +/* $NetBSD: shots.c,v 1.3 1997/10/11 08:13:50 lukem Exp $ */ /* * Hunt * Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold @@ -7,9 +7,10 @@ #include #ifndef lint -__RCSID("$NetBSD: shots.c,v 1.2 1997/10/10 16:33:54 lukem Exp $"); +__RCSID("$NetBSD: shots.c,v 1.3 1997/10/11 08:13:50 lukem Exp $"); #endif /* not lint */ +# include # include # include # include "hunt.h" @@ -1018,8 +1019,7 @@ play_at(y, x) for (pp = Player; pp < End_player; pp++) if (pp->p_x == x && pp->p_y == y) return pp; - fprintf(stderr, "driver: couldn't find player at (%d,%d)\n", x, y); - abort(); + errx(1, "driver: couldn't find player at (%d,%d)", x, y); /* NOTREACHED */ } -- cgit v1.2.3