summaryrefslogtreecommitdiffstats
path: root/sail/dr_2.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2009-03-14 20:04:43 +0000
committerdholland <dholland@NetBSD.org>2009-03-14 20:04:43 +0000
commit378015332508b48169d5f735be9a4bb4b6c82c03 (patch)
treef8401755021f17a0b5e07d16fd7ab7b379e351da /sail/dr_2.c
parentc9ea3d28669550d93bd8b6ba25a908f58b38683a (diff)
downloadbsdgames-darwin-378015332508b48169d5f735be9a4bb4b6c82c03.tar.gz
bsdgames-darwin-378015332508b48169d5f735be9a4bb4b6c82c03.tar.zst
bsdgames-darwin-378015332508b48169d5f735be9a4bb4b6c82c03.zip
Sprinkle some "bool". And don't use '\0' to mean 'false'.
Diffstat (limited to 'sail/dr_2.c')
-rw-r--r--sail/dr_2.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sail/dr_2.c b/sail/dr_2.c
index 56719fbd..460f24ff 100644
--- a/sail/dr_2.c
+++ b/sail/dr_2.c
@@ -1,4 +1,4 @@
-/* $NetBSD: dr_2.c,v 1.23 2009/03/14 19:35:13 dholland Exp $ */
+/* $NetBSD: dr_2.c,v 1.24 2009/03/14 20:04:43 dholland Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)dr_2.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: dr_2.c,v 1.23 2009/03/14 19:35:13 dholland Exp $");
+__RCSID("$NetBSD: dr_2.c,v 1.24 2009/03/14 20:04:43 dholland Exp $");
#endif
#endif /* not lint */
@@ -53,7 +53,7 @@ static void move_ship(struct ship *, const char *, unsigned char *,
short *, short *, int *);
static void try(struct ship *f, struct ship *t,
char *command, size_t commandmax, char *temp, size_t tempmax,
- int ma, int ta, int af, int vma, int dir, int *high,
+ int ma, int ta, bool af, int vma, int dir, int *high,
int rakeme);
static void rmend(char *);
@@ -158,7 +158,7 @@ str_end(const char *str)
void
closeon(struct ship *from, struct ship *to, char *command, size_t commandmax,
- int ta, int ma, int af)
+ int ta, int ma, bool af)
{
int high;
char temp[10];
@@ -246,7 +246,7 @@ static void
try(struct ship *f, struct ship *t,
char *command, size_t commandmax,
char *temp, size_t tempmax,
- int ma, int ta, int af, int vma, int dir, int *high, int rakeme)
+ int ma, int ta, bool af, int vma, int dir, int *high, int rakeme)
{
int new, n;
char st[4];