diff options
author | christos <christos@NetBSD.org> | 1997-10-12 21:24:24 +0000 |
---|---|---|
committer | christos <christos@NetBSD.org> | 1997-10-12 21:24:24 +0000 |
commit | 634cb6ceab3191623a3daed5e953821e3f37a4cb (patch) | |
tree | 2bb707d4d2f4e28a241cac2e70f7392be0acb329 /trek/win.c | |
parent | a77b3f8edc13dc6efdbcf80e336689cfa1de08ab (diff) | |
download | bsdgames-darwin-634cb6ceab3191623a3daed5e953821e3f37a4cb.tar.gz bsdgames-darwin-634cb6ceab3191623a3daed5e953821e3f37a4cb.tar.zst bsdgames-darwin-634cb6ceab3191623a3daed5e953821e3f37a4cb.zip |
Warnsify and remove local implementations of libc functions.
Diffstat (limited to 'trek/win.c')
-rw-r--r-- | trek/win.c | 22 |
1 files changed, 12 insertions, 10 deletions
@@ -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 <sys/cdefs.h> #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 <setjmp.h> +#include <stdio.h> +#include <unistd.h> +#include <setjmp.h> +#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"); |