summaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorjb <jb@FreeBSD.org>1998-05-09 10:51:27 +0000
committerjb <jb@FreeBSD.org>1998-05-09 10:51:27 +0000
commit05e443dab403732dd66ad30cfb3029a489e3a53b (patch)
tree421d4749d7b3993c575b7763a4db9d1ab3269f29 /games
parent0b8d784850928b448cb8b870169fabaf4cd292a4 (diff)
downloadFreeBSD-src-05e443dab403732dd66ad30cfb3029a489e3a53b.zip
FreeBSD-src-05e443dab403732dd66ad30cfb3029a489e3a53b.tar.gz
Cast pointers to long instead of int.
Diffstat (limited to 'games')
-rw-r--r--games/sail/dr_1.c6
-rw-r--r--games/sail/pl_4.c2
-rw-r--r--games/sail/pl_main.c4
-rw-r--r--games/sail/sync.c6
4 files changed, 9 insertions, 9 deletions
diff --git a/games/sail/dr_1.c b/games/sail/dr_1.c
index 170e5d9..52ab369 100644
--- a/games/sail/dr_1.c
+++ b/games/sail/dr_1.c
@@ -181,7 +181,7 @@ int key;
makesignal(from, "boarders from %s repelled", to);
(void) sprintf(message, "killed in melee: %d. %s: %d",
totalto, from->shipname, totalfrom);
- Write(W_SIGNAL, to, 1, (int) message, 0, 0, 0);
+ Write(W_SIGNAL, to, 1, (long) message, 0, 0, 0);
if (key)
return 1;
} else if (strengthto >= fromstrength * 3) {
@@ -213,10 +213,10 @@ int key;
}
(void) sprintf(message, "captured by the %s!",
to->shipname);
- Write(W_SIGNAL, from, 1, (int) message, 0, 0, 0);
+ Write(W_SIGNAL, from, 1, (long) message, 0, 0, 0);
(void) sprintf(message, "killed in melee: %d. %s: %d",
totalto, from->shipname, totalfrom);
- Write(W_SIGNAL, to, 1, (int) message, 0, 0, 0);
+ Write(W_SIGNAL, to, 1, (long) message, 0, 0, 0);
mento = 0;
return 0;
}
diff --git a/games/sail/pl_4.c b/games/sail/pl_4.c
index 0553146..f281e76 100644
--- a/games/sail/pl_4.c
+++ b/games/sail/pl_4.c
@@ -74,7 +74,7 @@ acceptsignal()
;
p[-1] = '"';
*p = 0;
- Write(W_SIGNAL, ms, 1, (int)buf, 0, 0, 0);
+ Write(W_SIGNAL, ms, 1, (long)buf, 0, 0, 0);
}
lookout()
diff --git a/games/sail/pl_main.c b/games/sail/pl_main.c
index 4f57121..6eb85b0 100644
--- a/games/sail/pl_main.c
+++ b/games/sail/pl_main.c
@@ -204,7 +204,7 @@ reprint:
else
captain[sizeof(captain) - 1] = '\0';
}
- Write(W_CAPTAIN, ms, 1, (int)captain, 0, 0, 0);
+ Write(W_CAPTAIN, ms, 1, (long)captain, 0, 0, 0);
for (n = 0; n < 2; n++) {
char buf[10];
@@ -240,6 +240,6 @@ reprint:
initscreen();
draw_board();
(void) sprintf(message, "Captain %s assuming command", captain);
- Write(W_SIGNAL, ms, 1, (int)message, 0, 0, 0);
+ Write(W_SIGNAL, ms, 1, (long)message, 0, 0, 0);
newturn();
}
diff --git a/games/sail/sync.c b/games/sail/sync.c
index ca56e23..7eac506 100644
--- a/games/sail/sync.c
+++ b/games/sail/sync.c
@@ -64,7 +64,7 @@ makesignal(from, fmt, ship, a, b, c)
(void) sprintf(message, fmt,
ship->shipname, colours(ship),
sterncolour(ship), a, b, c);
- Write(W_SIGNAL, from, 1, (int)message, 0, 0, 0);
+ Write(W_SIGNAL, from, 1, (long)message, 0, 0, 0);
}
#include <sys/types.h>
@@ -194,7 +194,7 @@ Sync()
*p = 0;
for (p = buf; *p == ' '; p++)
;
- a = (int)p;
+ a = (long)p;
b = c = d = 0;
} else
if (fscanf(sync_fp, "%d%d%d%d", &a, &b, &c, &d) != 4)
@@ -226,7 +226,7 @@ out:
sync_update(type, ship, a, b, c, d)
int type;
register struct ship *ship;
- int a, b, c, d;
+ long a, b, c, d;
{
switch (type) {
case W_DBP: {
OpenPOWER on IntegriCloud