summaryrefslogtreecommitdiffstats
path: root/phantasia/interplayer.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2009-05-25 23:08:45 +0000
committerdholland <dholland@NetBSD.org>2009-05-25 23:08:45 +0000
commit28a2fb534d0a6db57738352113f148c57f1078f1 (patch)
treec3c7bfe1d0d779ea9aa7888315f49c8d951b148f /phantasia/interplayer.c
parentdb71584135fee53a454ac992bfaef83923ef082d (diff)
downloadbsdgames-darwin-28a2fb534d0a6db57738352113f148c57f1078f1.tar.gz
bsdgames-darwin-28a2fb534d0a6db57738352113f148c57f1078f1.tar.zst
bsdgames-darwin-28a2fb534d0a6db57738352113f148c57f1078f1.zip
ANSIfy function declarations. Object file diffs cross-checked.
Diffstat (limited to 'phantasia/interplayer.c')
-rw-r--r--phantasia/interplayer.c29
1 files changed, 11 insertions, 18 deletions
diff --git a/phantasia/interplayer.c b/phantasia/interplayer.c
index 3cb786c0..d47d32e0 100644
--- a/phantasia/interplayer.c
+++ b/phantasia/interplayer.c
@@ -1,4 +1,4 @@
-/* $NetBSD: interplayer.c,v 1.9 2005/02/15 12:58:21 jsm Exp $ */
+/* $NetBSD: interplayer.c,v 1.10 2009/05/25 23:08:45 dholland Exp $ */
/*
* interplayer.c - player to player routines for Phantasia
@@ -9,7 +9,7 @@
#include <curses.h>
void
-checkbattle()
+checkbattle(void)
{
long foeloc = 0L; /* location in file of person to fight */
@@ -46,8 +46,7 @@ checkbattle()
}
void
-battleplayer(foeplace)
- long foeplace;
+battleplayer(long foeplace)
{
double dtemp; /* for temporary calculations */
double oldhits = 0.0; /* previous damage inflicted by foe */
@@ -275,7 +274,7 @@ LEAVE:
}
void
-myturn()
+myturn(void)
{
double dtemp; /* for temporary calculations */
int ch; /* input */
@@ -353,7 +352,7 @@ HIT:
}
void
-checktampered()
+checktampered(void)
{
long loc = 0L; /* location in energy void file */
@@ -386,10 +385,7 @@ checktampered()
}
void
-tampered(what, arg1, arg2)
- int what;
- double arg1;
- double arg2;
+tampered(int what, double arg1, double arg2)
{
long loc; /* location in file of other players */
@@ -538,8 +534,7 @@ tampered(what, arg1, arg2)
}
void
-userlist(ingameflag)
- phbool ingameflag;
+userlist(phbool ingameflag)
{
int numusers = 0; /* number of users on file */
@@ -601,7 +596,7 @@ userlist(ingameflag)
}
void
-throneroom()
+throneroom(void)
{
FILE *fp; /* to clear energy voids */
long loc = 0L; /* location of old king in player file */
@@ -655,7 +650,7 @@ throneroom()
}
void
-dotampered()
+dotampered(void)
{
short tamper; /* value for tampering with other players */
const char *option; /* pointer to option description */
@@ -862,9 +857,7 @@ dotampered()
}
void
-writevoid(vp, loc)
- struct energyvoid *vp;
- long loc;
+writevoid(struct energyvoid *vp, long loc)
{
fseek(Energyvoidfp, loc, SEEK_SET);
@@ -874,7 +867,7 @@ writevoid(vp, loc)
}
long
-allocvoid()
+allocvoid(void)
{
long loc = 0L; /* location of new energy void */