From 6983a09270094797e7a00980305628b5e80021e9 Mon Sep 17 00:00:00 2001 From: dholland Date: Sun, 30 Mar 2014 05:53:12 +0000 Subject: Use bool (not int) for a boolean return type. --- hunt/huntd/answer.c | 6 +++--- hunt/huntd/hunt.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'hunt') 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 #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 @@ -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 */ -- cgit v1.2.3