Module Name:    src
Committed By:   dholland
Date:           Mon Mar 29 02:21:04 UTC 2010

Modified Files:
        src/games/gomoku: bdisp.c

Log Message:
Don't exit(0) on failure. Use errx() instead of fprintf.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/games/gomoku/bdisp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/games/gomoku/bdisp.c
diff -u src/games/gomoku/bdisp.c:1.12 src/games/gomoku/bdisp.c:1.13
--- src/games/gomoku/bdisp.c:1.12	Mon Jul 13 19:05:40 2009
+++ src/games/gomoku/bdisp.c	Mon Mar 29 02:21:04 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: bdisp.c,v 1.12 2009/07/13 19:05:40 roy Exp $	*/
+/*	$NetBSD: bdisp.c,v 1.13 2010/03/29 02:21:04 dholland Exp $	*/
 
 /*
  * Copyright (c) 1994
@@ -37,13 +37,14 @@
 #if 0
 static char sccsid[] = "@(#)bdisp.c	8.2 (Berkeley) 5/3/95";
 #else
-__RCSID("$NetBSD: bdisp.c,v 1.12 2009/07/13 19:05:40 roy Exp $");
+__RCSID("$NetBSD: bdisp.c,v 1.13 2010/03/29 02:21:04 dholland Exp $");
 #endif
 #endif /* not lint */
 
 #include <curses.h>
 #include <string.h>
 #include <stdlib.h>
+#include <err.h>
 #include "gomoku.h"
 
 #define	SCRNH		24		/* assume 24 lines for the moment */
@@ -63,8 +64,7 @@
 {
 
 	if (!initscr()) {
-		fprintf(stderr, "couldn't initialize screen\n");
-		exit (0);
+		errx(EXIT_FAILURE, "Couldn't initialize screen");
 	}
 	noecho();
 	cbreak();

Reply via email to