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. --- trek/computer.c | 6 +++--- trek/dumpgame.c | 6 +++--- trek/getpar.c | 6 +++--- trek/phaser.c | 6 +++--- trek/setup.c | 8 ++++---- trek/shield.c | 6 +++--- 6 files changed, 19 insertions(+), 19 deletions(-) (limited to 'trek') diff --git a/trek/computer.c b/trek/computer.c index fba590ad..dbf5e614 100644 --- a/trek/computer.c +++ b/trek/computer.c @@ -1,4 +1,4 @@ -/* $NetBSD: computer.c,v 1.3 1995/04/22 10:58:39 cgd Exp $ */ +/* $NetBSD: computer.c,v 1.4 1995/04/24 12:25:51 cgd Exp $ */ /* * Copyright (c) 1980, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)computer.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$NetBSD: computer.c,v 1.3 1995/04/22 10:58:39 cgd Exp $"; +static char rcsid[] = "$NetBSD: computer.c,v 1.4 1995/04/24 12:25:51 cgd Exp $"; #endif #endif /* not lint */ @@ -123,7 +123,7 @@ computer() while (1) { r = getcodpar("\nRequest", Cputab); - switch ((int)r->value) + switch ((long)r->value) { case 1: /* star chart */ diff --git a/trek/dumpgame.c b/trek/dumpgame.c index b512d8e9..17e7e7a1 100644 --- a/trek/dumpgame.c +++ b/trek/dumpgame.c @@ -1,4 +1,4 @@ -/* $NetBSD: dumpgame.c,v 1.3 1995/04/22 10:58:46 cgd Exp $ */ +/* $NetBSD: dumpgame.c,v 1.4 1995/04/24 12:25:54 cgd Exp $ */ /* * Copyright (c) 1980, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)dumpgame.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$NetBSD: dumpgame.c,v 1.3 1995/04/22 10:58:46 cgd Exp $"; +static char rcsid[] = "$NetBSD: dumpgame.c,v 1.4 1995/04/24 12:25:54 cgd Exp $"; #endif #endif /* not lint */ @@ -147,7 +147,7 @@ int fd1; register int fd; register struct dump *d; register int i; - int junk; + long junk; fd = fd1; diff --git a/trek/getpar.c b/trek/getpar.c index f2370f10..77bfa360 100644 --- a/trek/getpar.c +++ b/trek/getpar.c @@ -1,4 +1,4 @@ -/* $NetBSD: getpar.c,v 1.3 1995/04/22 10:58:57 cgd Exp $ */ +/* $NetBSD: getpar.c,v 1.4 1995/04/24 12:25:57 cgd Exp $ */ /* * Copyright (c) 1980, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)getpar.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$NetBSD: getpar.c,v 1.3 1995/04/22 10:58:57 cgd Exp $"; +static char rcsid[] = "$NetBSD: getpar.c,v 1.4 1995/04/24 12:25:57 cgd Exp $"; #endif #endif /* not lint */ @@ -109,7 +109,7 @@ char *s; struct cvntab *r; r = getcodpar(s, Yntab); - return ((int) r->value); + return ((long) r->value); } diff --git a/trek/phaser.c b/trek/phaser.c index b3d4ea3c..24b713a3 100644 --- a/trek/phaser.c +++ b/trek/phaser.c @@ -1,4 +1,4 @@ -/* $NetBSD: phaser.c,v 1.3 1995/04/22 10:59:17 cgd Exp $ */ +/* $NetBSD: phaser.c,v 1.4 1995/04/24 12:26:02 cgd Exp $ */ /* * Copyright (c) 1980, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)phaser.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$NetBSD: phaser.c,v 1.3 1995/04/22 10:59:17 cgd Exp $"; +static char rcsid[] = "$NetBSD: phaser.c,v 1.4 1995/04/24 12:26:02 cgd Exp $"; #endif #endif /* not lint */ @@ -144,7 +144,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/trek/setup.c b/trek/setup.c index 7b67e6da..ce752026 100644 --- a/trek/setup.c +++ b/trek/setup.c @@ -1,4 +1,4 @@ -/* $NetBSD: setup.c,v 1.3 1995/04/22 10:59:26 cgd Exp $ */ +/* $NetBSD: setup.c,v 1.4 1995/04/24 12:26:06 cgd Exp $ */ /* * Copyright (c) 1980, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)setup.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$NetBSD: setup.c,v 1.3 1995/04/22 10:59:26 cgd Exp $"; +static char rcsid[] = "$NetBSD: setup.c,v 1.4 1995/04/24 12:26:06 cgd Exp $"; #endif #endif /* not lint */ @@ -90,7 +90,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()) @@ -100,7 +100,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/trek/shield.c b/trek/shield.c index 6b5d56fc..a2345dc1 100644 --- a/trek/shield.c +++ b/trek/shield.c @@ -1,4 +1,4 @@ -/* $NetBSD: shield.c,v 1.3 1995/04/22 10:59:28 cgd Exp $ */ +/* $NetBSD: shield.c,v 1.4 1995/04/24 12:26:09 cgd Exp $ */ /* * Copyright (c) 1980, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)shield.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$NetBSD: shield.c,v 1.3 1995/04/22 10:59:28 cgd Exp $"; +static char rcsid[] = "$NetBSD: shield.c,v 1.4 1995/04/24 12:26:09 cgd Exp $"; #endif #endif /* not lint */ @@ -115,7 +115,7 @@ int f; if (f <= 0 && !testnl()) { r = getcodpar("Up or down", Udtab); - i = (int) r->value; + i = (long) r->value; } else { -- cgit v1.2.3-56-ge451