X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/99518a3664f03a0839b12707e82684f120310023..5581e4e9051050bf46efbb811992060b98f7e740:/hangman/main.c?ds=sidebyside diff --git a/hangman/main.c b/hangman/main.c index 93b981e4..d7c25785 100644 --- a/hangman/main.c +++ b/hangman/main.c @@ -1,4 +1,4 @@ -/* $NetBSD: main.c,v 1.13 2008/07/20 01:03:21 lukem Exp $ */ +/* $NetBSD: main.c,v 1.15 2012/06/19 05:45:00 dholland Exp $ */ /* * Copyright (c) 1983, 1993 @@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1993\ #if 0 static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: main.c,v 1.13 2008/07/20 01:03:21 lukem Exp $"); +__RCSID("$NetBSD: main.c,v 1.15 2012/06/19 05:45:00 dholland Exp $"); #endif #endif /* not lint */ @@ -50,9 +50,7 @@ __RCSID("$NetBSD: main.c,v 1.13 2008/07/20 01:03:21 lukem Exp $"); * This game written by Ken Arnold. */ int -main(argc, argv) - int argc; - char *argv[]; +main(int argc, char *argv[]) { int ch; @@ -76,7 +74,8 @@ main(argc, argv) } } - initscr(); + if (!initscr()) + errx(0, "couldn't initialize screen"); signal(SIGINT, die); setup(); for (;;) { @@ -91,8 +90,7 @@ main(argc, argv) * Die properly. */ void -die(dummy) - int dummy __unused; +die(int dummy __unused) { mvcur(0, COLS - 1, LINES - 1, 0); endwin();