summaryrefslogtreecommitdiffstats
path: root/robots/init_field.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2009-07-20 06:39:06 +0000
committerdholland <dholland@NetBSD.org>2009-07-20 06:39:06 +0000
commitc723a928778be55849c00d5cc692bf522bb8dae3 (patch)
tree5df93c1e2785c24ec08fe81f3847cfb843ef6956 /robots/init_field.c
parent2259ef99814e890037423ad7beecb3fa28ca0f78 (diff)
downloadbsdgames-darwin-c723a928778be55849c00d5cc692bf522bb8dae3.tar.gz
bsdgames-darwin-c723a928778be55849c00d5cc692bf522bb8dae3.zip
Assorted minor cleanups, no functional change:
- u_int* -> uint* - don't make private typedefs of system structures - use curses TRUE and FALSE only with curses booleans, otherwise true and false; - includes cleanup - group globals in extern.c by functionality Object file diffs inspected.
Diffstat (limited to 'robots/init_field.c')
-rw-r--r--robots/init_field.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/robots/init_field.c b/robots/init_field.c
index 0f902b44..0e0e7850 100644
--- a/robots/init_field.c
+++ b/robots/init_field.c
@@ -1,4 +1,4 @@
-/* $NetBSD: init_field.c,v 1.11 2009/07/20 06:09:29 dholland Exp $ */
+/* $NetBSD: init_field.c,v 1.12 2009/07/20 06:39:06 dholland Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -34,10 +34,11 @@
#if 0
static char sccsid[] = "@(#)init_field.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: init_field.c,v 1.11 2009/07/20 06:09:29 dholland Exp $");
+__RCSID("$NetBSD: init_field.c,v 1.12 2009/07/20 06:39:06 dholland Exp $");
#endif
#endif /* not lint */
+#include <curses.h>
#include "robots.h"
static int telx = 0;
@@ -52,7 +53,7 @@ void
init_field(void)
{
int i;
- static bool first = TRUE;
+ static bool first = true;
static const char *const desc[] = {
"Directions:",
"",
@@ -79,8 +80,8 @@ init_field(void)
NULL
};
- Dead = FALSE;
- Waiting = FALSE;
+ Dead = false;
+ Waiting = false;
Score = 0;
erase();
@@ -115,7 +116,7 @@ init_field(void)
tely = i;
if (first)
refresh();
- first = FALSE;
+ first = false;
#ifdef FANCY
if (Pattern_roll)
Next_move = &Move_list[-1];