From 634cb6ceab3191623a3daed5e953821e3f37a4cb Mon Sep 17 00:00:00 2001 From: christos Date: Sun, 12 Oct 1997 21:24:24 +0000 Subject: Warnsify and remove local implementations of libc functions. --- trek/win.c | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'trek/win.c') diff --git a/trek/win.c b/trek/win.c index 85d3dc29..64be2331 100644 --- a/trek/win.c +++ b/trek/win.c @@ -1,4 +1,4 @@ -/* $NetBSD: win.c,v 1.3 1995/04/22 10:59:41 cgd Exp $ */ +/* $NetBSD: win.c,v 1.4 1997/10/12 21:25:28 christos Exp $ */ /* * Copyright (c) 1980, 1993 @@ -33,17 +33,20 @@ * SUCH DAMAGE. */ +#include #ifndef lint #if 0 static char sccsid[] = "@(#)win.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$NetBSD: win.c,v 1.3 1995/04/22 10:59:41 cgd Exp $"; +__RCSID("$NetBSD: win.c,v 1.4 1997/10/12 21:25:28 christos Exp $"); #endif #endif /* not lint */ -# include "trek.h" -# include "getpar.h" -# include +#include +#include +#include +#include "trek.h" +#include "getpar.h" /* ** Signal game won @@ -58,13 +61,12 @@ static char rcsid[] = "$NetBSD: win.c,v 1.3 1995/04/22 10:59:41 cgd Exp $"; ** pretty off the wall. */ +void win() { - long s; - extern jmp_buf env; - extern long score(); - extern struct cvntab Skitab[]; - register struct cvntab *p; + long s; + struct cvntab *p = NULL; + extern jmp_buf env; sleep(1); printf("\nCongratulations, you have saved the Federation\n"); -- cgit v1.2.3-56-ge451