diff options
| author | jsm <jsm@NetBSD.org> | 1999-09-30 18:01:31 +0000 |
|---|---|---|
| committer | jsm <jsm@NetBSD.org> | 1999-09-30 18:01:31 +0000 |
| commit | 963f40fabfbfc47378585a05f5b465cbd4e0c7b6 (patch) | |
| tree | 7d2ead721965b1afb7d25682629c2f61932820fc /sail/dr_3.c | |
| parent | e2f2d09292b8ac5c5390ab1b7e6fa09ab554080f (diff) | |
| download | bsdgames-darwin-963f40fabfbfc47378585a05f5b465cbd4e0c7b6.tar.gz bsdgames-darwin-963f40fabfbfc47378585a05f5b465cbd4e0c7b6.zip | |
Fix uses of namespaces reserved by ISO C or POSIX.1.
Diffstat (limited to 'sail/dr_3.c')
| -rw-r--r-- | sail/dr_3.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sail/dr_3.c b/sail/dr_3.c index 6c935269..77a83ede 100644 --- a/sail/dr_3.c +++ b/sail/dr_3.c @@ -1,4 +1,4 @@ -/* $NetBSD: dr_3.c,v 1.6 1999/02/10 00:45:45 hubertf Exp $ */ +/* $NetBSD: dr_3.c,v 1.7 1999/09/30 18:01:33 jsm Exp $ */ /* * Copyright (c) 1983, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)dr_3.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: dr_3.c,v 1.6 1999/02/10 00:45:45 hubertf Exp $"); +__RCSID("$NetBSD: dr_3.c,v 1.7 1999/09/30 18:01:33 jsm Exp $"); #endif #endif /* not lint */ @@ -119,7 +119,7 @@ moveall() /* move all comp ships */ */ n = 0; foreachship(sp) { - if (sp->file->dir == 0 || isolated(sp)) + if (sp->file->dir == 0 || is_isolated(sp)) goto cont1; l = 0; foreachship(sq) { @@ -195,7 +195,7 @@ int k; } int -isolated(ship) +is_isolated(ship) struct ship *ship; { struct ship *sp; @@ -288,7 +288,7 @@ char isdefense; } int -toughmelee(ship, to, isdefense, count) +is_toughmelee(ship, to, isdefense, count) struct ship *ship, *to; int isdefense, count; { @@ -311,9 +311,9 @@ int isdefense, count; } if (count || isdefense) return obp; - OBP = toughmelee(to, ship, 0, count + 1); - dbp = toughmelee(ship, to, 1, count + 1); - DBP = toughmelee(to, ship, 1, count + 1); + OBP = is_toughmelee(to, ship, 0, count + 1); + dbp = is_toughmelee(ship, to, 1, count + 1); + DBP = is_toughmelee(to, ship, 1, count + 1); if (OBP > obp + 10 || OBP + DBP >= obp + dbp + 10) return 1; else |
