diff options
author | dholland <dholland@NetBSD.org> | 2009-03-02 07:17:24 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2009-03-02 07:17:24 +0000 |
commit | 943621f8a6eb8a69bef1457f68be5fc43c998212 (patch) | |
tree | f28413cb9ec1fa5edfea4adccf9d0fadd1b97fda /sail | |
parent | 55974bdf8263bc186f3e7735b7298cdd54b35814 (diff) | |
download | bsdgames-darwin-943621f8a6eb8a69bef1457f68be5fc43c998212.tar.gz bsdgames-darwin-943621f8a6eb8a69bef1457f68be5fc43c998212.tar.zst bsdgames-darwin-943621f8a6eb8a69bef1457f68be5fc43c998212.zip |
Use errx() to send fatal error messages. From OpenBSD.
Diffstat (limited to 'sail')
-rw-r--r-- | sail/pl_7.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sail/pl_7.c b/sail/pl_7.c index 30bc28cb..feae77c1 100644 --- a/sail/pl_7.c +++ b/sail/pl_7.c @@ -1,4 +1,4 @@ -/* $NetBSD: pl_7.c,v 1.28 2007/12/15 19:44:43 perry Exp $ */ +/* $NetBSD: pl_7.c,v 1.29 2009/03/02 07:17:24 dholland Exp $ */ /* * Copyright (c) 1983, 1993 @@ -34,11 +34,12 @@ #if 0 static char sccsid[] = "@(#)pl_7.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: pl_7.c,v 1.28 2007/12/15 19:44:43 perry Exp $"); +__RCSID("$NetBSD: pl_7.c,v 1.29 2009/03/02 07:17:24 dholland Exp $"); #endif #endif /* not lint */ #include <curses.h> +#include <err.h> #include <signal.h> #include <stdarg.h> #include <stdio.h> @@ -82,8 +83,7 @@ void initscreen(void) { if (!SCREENTEST()) { - printf("Can't sail on this terminal.\n"); - exit(1); + errx(1, "Can't sail on this terminal."); } /* initscr() already done in SCREENTEST() */ view_w = newwin(VIEW_Y, VIEW_X, VIEW_T, VIEW_L); |