X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/f31fc2c1d85c05180f4cedad70ca7ec4eb8bb85f..87a663b7aa0b74d11867999d073c7e468ce5e580:/trek/lose.c diff --git a/trek/lose.c b/trek/lose.c index eae32a91..957712f5 100644 --- a/trek/lose.c +++ b/trek/lose.c @@ -1,4 +1,4 @@ -/* $NetBSD: lose.c,v 1.8 2009/05/24 19:18:44 dholland Exp $ */ +/* $NetBSD: lose.c,v 1.10 2009/08/12 08:54:54 dholland Exp $ */ /* * Copyright (c) 1980, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)lose.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: lose.c,v 1.8 2009/05/24 19:18:44 dholland Exp $"); +__RCSID("$NetBSD: lose.c,v 1.10 2009/08/12 08:54:54 dholland Exp $"); #endif #endif /* not lint */ @@ -54,8 +54,7 @@ __RCSID("$NetBSD: lose.c,v 1.8 2009/05/24 19:18:44 dholland Exp $"); extern jmp_buf env; -const char *const Losemsg[] = -{ +static const char *const Losemsg[] = { "You ran out of time", "You ran out of energy", "You have been destroyed", @@ -77,9 +76,7 @@ lose(int why) Game.killed = 1; sleep(1); printf("\n%s\n", Losemsg[why - 1]); - switch (why) - { - + switch (why) { case L_NOTIME: Game.killed = 0; break;