From a65a873e56c35780711e9f73872c4fe0254589b0 Mon Sep 17 00:00:00 2001 From: cgd Date: Mon, 24 Apr 1995 12:21:37 +0000 Subject: Various changes to make games compile w/o warnings on the alpha: Include appropriate includes, delete bogus function declarations, change sizes of variables and casts. --- sail/dr_1.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sail/dr_1.c') diff --git a/sail/dr_1.c b/sail/dr_1.c index 75605b37..de4c8c5f 100644 --- a/sail/dr_1.c +++ b/sail/dr_1.c @@ -1,4 +1,4 @@ -/* $NetBSD: dr_1.c,v 1.3 1995/04/22 10:36:46 cgd Exp $ */ +/* $NetBSD: dr_1.c,v 1.4 1995/04/24 12:25:10 cgd Exp $ */ /* * Copyright (c) 1983, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)dr_1.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$NetBSD: dr_1.c,v 1.3 1995/04/22 10:36:46 cgd Exp $"; +static char rcsid[] = "$NetBSD: dr_1.c,v 1.4 1995/04/24 12:25:10 cgd Exp $"; #endif #endif /* not lint */ @@ -187,7 +187,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) { @@ -219,10 +219,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; } -- cgit v1.2.3