diff options
author | dholland <dholland@NetBSD.org> | 2014-03-30 05:53:12 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2014-03-30 05:53:12 +0000 |
commit | 6983a09270094797e7a00980305628b5e80021e9 (patch) | |
tree | 8ddbe70c137d43c02d81bc201804d49d15c477bf /hunt | |
parent | f9de6e942c437f08e341e81a1bfb965c89112787 (diff) | |
download | bsdgames-darwin-6983a09270094797e7a00980305628b5e80021e9.tar.gz bsdgames-darwin-6983a09270094797e7a00980305628b5e80021e9.tar.zst bsdgames-darwin-6983a09270094797e7a00980305628b5e80021e9.zip |
Use bool (not int) for a boolean return type.
Diffstat (limited to 'hunt')
-rw-r--r-- | hunt/huntd/answer.c | 6 | ||||
-rw-r--r-- | hunt/huntd/hunt.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/hunt/huntd/answer.c b/hunt/huntd/answer.c index 183521b5..df8a7be4 100644 --- a/hunt/huntd/answer.c +++ b/hunt/huntd/answer.c @@ -1,4 +1,4 @@ -/* $NetBSD: answer.c,v 1.22 2014/03/30 05:30:28 dholland Exp $ */ +/* $NetBSD: answer.c,v 1.23 2014/03/30 05:53:12 dholland Exp $ */ /* * Copyright (c) 1983-2003, Regents of the University of California. * All rights reserved. @@ -32,7 +32,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: answer.c,v 1.22 2014/03/30 05:30:28 dholland Exp $"); +__RCSID("$NetBSD: answer.c,v 1.23 2014/03/30 05:53:12 dholland Exp $"); #endif /* not lint */ #include <sys/types.h> @@ -54,7 +54,7 @@ static IDENT *get_ident(uint32_t, uint32_t, const char *, char); static void stmonitor(PLAYER *); static void stplayer(PLAYER *, int); -int +bool answer(void) { PLAYER *pp; diff --git a/hunt/huntd/hunt.h b/hunt/huntd/hunt.h index 82605662..eeffbb3f 100644 --- a/hunt/huntd/hunt.h +++ b/hunt/huntd/hunt.h @@ -1,4 +1,4 @@ -/* $NetBSD: hunt.h,v 1.30 2014/03/30 05:30:28 dholland Exp $ */ +/* $NetBSD: hunt.h,v 1.31 2014/03/30 05:53:12 dholland Exp $ */ /* * Copyright (c) 1983-2003, Regents of the University of California. @@ -160,7 +160,7 @@ extern PLAYER Monitor[MAXMON], *End_monitor; */ /* in answer.c */ -int answer(void); +bool answer(void); int rand_dir(void); /* in draw.c */ |