diff options
author | dholland <dholland@NetBSD.org> | 2009-05-24 21:44:56 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2009-05-24 21:44:56 +0000 |
commit | 927a087250c6d788d6df6cc7fcb0359653e2efd3 (patch) | |
tree | e1bd8e6ccde5d2a67885bac40ac518b2a855e3f4 /trek/lose.c | |
parent | 4ae8fc90b11f51c654ce09c6a9bb74c163f33076 (diff) | |
download | bsdgames-darwin-927a087250c6d788d6df6cc7fcb0359653e2efd3.tar.gz bsdgames-darwin-927a087250c6d788d6df6cc7fcb0359653e2efd3.tar.zst bsdgames-darwin-927a087250c6d788d6df6cc7fcb0359653e2efd3.zip |
KNF: brace and comment placement. Object files identical.
Diffstat (limited to 'trek/lose.c')
-rw-r--r-- | trek/lose.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/trek/lose.c b/trek/lose.c index eae32a91..974b1776 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.9 2009/05/24 21:44:56 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.9 2009/05/24 21:44:56 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[] = -{ +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; |