From 171895fb3091b20b772c7ce10af67d5d5e3c03f9 Mon Sep 17 00:00:00 2001 From: dholland Date: Mon, 14 Jan 2008 03:50:01 +0000 Subject: ANSIfy. Remove unnecessary casts. Clean up for -Wsign-compare. Make more things file-static. Other minor tidyups, and fix a couple minor bugs found along the way. --- rogue/play.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'rogue/play.c') diff --git a/rogue/play.c b/rogue/play.c index 1e14754d..88245384 100644 --- a/rogue/play.c +++ b/rogue/play.c @@ -1,4 +1,4 @@ -/* $NetBSD: play.c,v 1.8 2008/01/14 00:23:52 dholland Exp $ */ +/* $NetBSD: play.c,v 1.9 2008/01/14 03:50:02 dholland Exp $ */ /* * Copyright (c) 1988, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)play.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: play.c,v 1.8 2008/01/14 00:23:52 dholland Exp $"); +__RCSID("$NetBSD: play.c,v 1.9 2008/01/14 03:50:02 dholland Exp $"); #endif #endif /* not lint */ @@ -56,10 +56,11 @@ __RCSID("$NetBSD: play.c,v 1.8 2008/01/14 00:23:52 dholland Exp $"); #include "rogue.h" boolean interrupted = 0; -const char *unknown_command = "unknown command"; + +static const char unknown_command[] = "unknown command"; void -play_level() +play_level(void) { short ch; int count; -- cgit v1.2.3