summaryrefslogtreecommitdiffstats
path: root/games/trek/setup.c
diff options
context:
space:
mode:
authorjb <jb@FreeBSD.org>1998-05-09 10:39:48 +0000
committerjb <jb@FreeBSD.org>1998-05-09 10:39:48 +0000
commit7689e1e466788151fa3729c0c24d1c3773d50879 (patch)
tree0d3416bec93b5a344277d43834520aaae4337ac9 /games/trek/setup.c
parent87514388e9954eb02e98a79cf44c0d1ce7383b6b (diff)
downloadFreeBSD-src-7689e1e466788151fa3729c0c24d1c3773d50879.zip
FreeBSD-src-7689e1e466788151fa3729c0c24d1c3773d50879.tar.gz
Change casts of function pointers from int to long. This makes the
compiler warnings go away, but the compiler is throwing away 32-bits as the long value is silently truncated to an int on alpha. But the program works, so that must not matter.
Diffstat (limited to 'games/trek/setup.c')
-rw-r--r--games/trek/setup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/games/trek/setup.c b/games/trek/setup.c
index 8ea327c..edc9ad2 100644
--- a/games/trek/setup.c
+++ b/games/trek/setup.c
@@ -85,7 +85,7 @@ setup()
while (1)
{
r = getcodpar("What length game", Lentab);
- Game.length = (int) r->value;
+ Game.length = (long) r->value;
if (Game.length == 0)
{
if (restartgame())
@@ -95,7 +95,7 @@ setup()
break;
}
r = getcodpar("What skill game", Skitab);
- Game.skill = (int) r->value;
+ Game.skill = (long) r->value;
Game.tourn = 0;
getstrpar("Enter a password", Game.passwd, 14, 0);
if (sequal(Game.passwd, "tournament"))
OpenPOWER on IntegriCloud