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. --- backgammon/common_source/back.h | 4 +++- backgammon/common_source/fancy.c | 5 +++-- backgammon/common_source/subs.c | 6 +++--- 3 files changed, 9 insertions(+), 6 deletions(-) (limited to 'backgammon/common_source') diff --git a/backgammon/common_source/back.h b/backgammon/common_source/back.h index 0e556c41..567c936b 100644 --- a/backgammon/common_source/back.h +++ b/backgammon/common_source/back.h @@ -1,4 +1,4 @@ -/* $NetBSD: back.h,v 1.3 1995/03/21 15:05:28 cgd Exp $ */ +/* $NetBSD: back.h,v 1.4 1995/04/24 12:22:06 cgd Exp $ */ /* * Copyright (c) 1980, 1993 @@ -36,6 +36,8 @@ */ #include +#include +#include #define rnum(r) (random()%r) #define D0 dice[0] diff --git a/backgammon/common_source/fancy.c b/backgammon/common_source/fancy.c index 1cc7ee05..cb7818fa 100644 --- a/backgammon/common_source/fancy.c +++ b/backgammon/common_source/fancy.c @@ -1,4 +1,4 @@ -/* $NetBSD: fancy.c,v 1.3 1995/03/21 15:05:40 cgd Exp $ */ +/* $NetBSD: fancy.c,v 1.4 1995/04/24 12:22:09 cgd Exp $ */ /* * Copyright (c) 1980, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)fancy.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$NetBSD: fancy.c,v 1.3 1995/03/21 15:05:40 cgd Exp $"; +static char rcsid[] = "$NetBSD: fancy.c,v 1.4 1995/04/24 12:22:09 cgd Exp $"; #endif #endif /* not lint */ @@ -85,6 +85,7 @@ int realr; int realc; void addbuf(); +extern char *tgoto(), *tgetstr(); fboard () { register int i, j, l; diff --git a/backgammon/common_source/subs.c b/backgammon/common_source/subs.c index 1baefbe5..f6ca2b58 100644 --- a/backgammon/common_source/subs.c +++ b/backgammon/common_source/subs.c @@ -1,4 +1,4 @@ -/* $NetBSD: subs.c,v 1.3 1995/03/21 15:05:54 cgd Exp $ */ +/* $NetBSD: subs.c,v 1.4 1995/04/24 12:22:12 cgd Exp $ */ /* * Copyright (c) 1980, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)subs.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$NetBSD: subs.c,v 1.3 1995/03/21 15:05:54 cgd Exp $"; +static char rcsid[] = "$NetBSD: subs.c,v 1.4 1995/04/24 12:22:12 cgd Exp $"; #endif #endif /* not lint */ @@ -434,7 +434,7 @@ getout () { /* fix terminal status */ fixtty (old); - exit(); + exit(0); } roll () { register char c; -- cgit v1.2.3-56-ge451