Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/games/hunt/huntd Use bool (not int) for a boolean return type.
details: https://anonhg.NetBSD.org/src/rev/e00c4a361248
branches: trunk
changeset: 328292:e00c4a361248
user: dholland <dholland%NetBSD.org@localhost>
date: Sun Mar 30 05:53:12 2014 +0000
description:
Use bool (not int) for a boolean return type.
diffstat:
games/hunt/huntd/answer.c | 6 +++---
games/hunt/huntd/hunt.h | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r c6effc2bedcd -r e00c4a361248 games/hunt/huntd/answer.c
--- a/games/hunt/huntd/answer.c Sun Mar 30 05:48:35 2014 +0000
+++ b/games/hunt/huntd/answer.c Sun Mar 30 05:53:12 2014 +0000
@@ -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 void stmonitor(PLAYER *);
static void stplayer(PLAYER *, int);
-int
+bool
answer(void)
{
PLAYER *pp;
diff -r c6effc2bedcd -r e00c4a361248 games/hunt/huntd/hunt.h
--- a/games/hunt/huntd/hunt.h Sun Mar 30 05:48:35 2014 +0000
+++ b/games/hunt/huntd/hunt.h Sun Mar 30 05:53:12 2014 +0000
@@ -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 @@
*/
/* in answer.c */
-int answer(void);
+bool answer(void);
int rand_dir(void);
/* in draw.c */
Home |
Main Index |
Thread Index |
Old Index