diff options
author | jb <jb@FreeBSD.org> | 1998-05-09 10:39:48 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 1998-05-09 10:39:48 +0000 |
commit | 7689e1e466788151fa3729c0c24d1c3773d50879 (patch) | |
tree | 0d3416bec93b5a344277d43834520aaae4337ac9 /games/trek | |
parent | 87514388e9954eb02e98a79cf44c0d1ce7383b6b (diff) | |
download | FreeBSD-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')
-rw-r--r-- | games/trek/computer.c | 2 | ||||
-rw-r--r-- | games/trek/dumpgame.c | 2 | ||||
-rw-r--r-- | games/trek/getpar.c | 2 | ||||
-rw-r--r-- | games/trek/phaser.c | 2 | ||||
-rw-r--r-- | games/trek/setup.c | 4 | ||||
-rw-r--r-- | games/trek/shield.c | 2 |
6 files changed, 7 insertions, 7 deletions
diff --git a/games/trek/computer.c b/games/trek/computer.c index 02a0e41..2081c0e 100644 --- a/games/trek/computer.c +++ b/games/trek/computer.c @@ -117,7 +117,7 @@ computer() while (1) { r = getcodpar("\nRequest", Cputab); - switch ((int)r->value) + switch ((long)r->value) { case 1: /* star chart */ diff --git a/games/trek/dumpgame.c b/games/trek/dumpgame.c index e7a14fe..d386a9f 100644 --- a/games/trek/dumpgame.c +++ b/games/trek/dumpgame.c @@ -141,7 +141,7 @@ int fd1; register int fd; register struct dump *d; register int i; - int junk; + long junk; fd = fd1; diff --git a/games/trek/getpar.c b/games/trek/getpar.c index 3df297f..731f3e1 100644 --- a/games/trek/getpar.c +++ b/games/trek/getpar.c @@ -103,7 +103,7 @@ char *s; struct cvntab *r; r = getcodpar(s, Yntab); - return ((int) r->value); + return ((long) r->value); } diff --git a/games/trek/phaser.c b/games/trek/phaser.c index a0dec22..f120204 100644 --- a/games/trek/phaser.c +++ b/games/trek/phaser.c @@ -138,7 +138,7 @@ phaser() if (!manual) { ptr = getcodpar("Manual or automatic", Matab); - manual = (int) ptr->value; + manual = (long) ptr->value; } if (!manual && damaged(COMPUTER)) { 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")) diff --git a/games/trek/shield.c b/games/trek/shield.c index df7bb63..0e5c250 100644 --- a/games/trek/shield.c +++ b/games/trek/shield.c @@ -109,7 +109,7 @@ int f; if (f <= 0 && !testnl()) { r = getcodpar("Up or down", Udtab); - i = (int) r->value; + i = (long) r->value; } else { |