summaryrefslogtreecommitdiffstats
path: root/trek/dcrept.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2009-05-24 21:44:56 +0000
committerdholland <dholland@NetBSD.org>2009-05-24 21:44:56 +0000
commit927a087250c6d788d6df6cc7fcb0359653e2efd3 (patch)
treee1bd8e6ccde5d2a67885bac40ac518b2a855e3f4 /trek/dcrept.c
parent4ae8fc90b11f51c654ce09c6a9bb74c163f33076 (diff)
downloadbsdgames-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/dcrept.c')
-rw-r--r--trek/dcrept.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/trek/dcrept.c b/trek/dcrept.c
index e1981823..e12ea304 100644
--- a/trek/dcrept.c
+++ b/trek/dcrept.c
@@ -1,4 +1,4 @@
-/* $NetBSD: dcrept.c,v 1.8 2009/05/24 19:18:44 dholland Exp $ */
+/* $NetBSD: dcrept.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[] = "@(#)dcrept.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: dcrept.c,v 1.8 2009/05/24 19:18:44 dholland Exp $");
+__RCSID("$NetBSD: dcrept.c,v 1.9 2009/05/24 21:44:56 dholland Exp $");
#endif
#endif /* not lint */
@@ -63,13 +63,10 @@ dcrept(int v __unused)
struct event *e;
/* set up the magic factors to output the time till fixed */
- if (Ship.cond == DOCKED)
- {
+ if (Ship.cond == DOCKED) {
m1 = 1.0 / Param.dockfac;
m2 = 1.0;
- }
- else
- {
+ } else {
m1 = 1.0;
m2 = Param.dockfac;
}
@@ -77,15 +74,13 @@ dcrept(int v __unused)
f = 1;
/* scan for damages */
- for (i = 0; i < MAXEVENTS; i++)
- {
+ for (i = 0; i < MAXEVENTS; i++) {
e = &Event[i];
if (e->evcode != E_FIXDV)
continue;
/* output the title first time */
- if (f)
- {
+ if (f) {
printf("\t\t\t repair times\n");
printf("device\t\t\tin flight docked\n");
f = 0;