From 943621f8a6eb8a69bef1457f68be5fc43c998212 Mon Sep 17 00:00:00 2001 From: dholland Date: Mon, 2 Mar 2009 07:17:24 +0000 Subject: Use errx() to send fatal error messages. From OpenBSD. --- sail/pl_7.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sail') 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 +#include #include #include #include @@ -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); -- cgit v1.2.3