X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/82852318e37fa7eddacc3dd162a2d16d3a7487b9..ac993d78a557211a3c93c9e8f76d8e14e501932d:/trek/visual.c diff --git a/trek/visual.c b/trek/visual.c index 26fd5b21..286901e2 100644 --- a/trek/visual.c +++ b/trek/visual.c @@ -1,4 +1,4 @@ -/* $NetBSD: visual.c,v 1.5 1999/09/08 21:45:33 jsm Exp $ */ +/* $NetBSD: visual.c,v 1.10 2009/08/12 08:54:54 dholland Exp $ */ /* * Copyright (c) 1980, 1993 @@ -12,11 +12,7 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors + * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * @@ -38,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)visual.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: visual.c,v 1.5 1999/09/08 21:45:33 jsm Exp $"); +__RCSID("$NetBSD: visual.c,v 1.10 2009/08/12 08:54:54 dholland Exp $"); #endif #endif /* not lint */ @@ -56,8 +52,7 @@ __RCSID("$NetBSD: visual.c,v 1.5 1999/09/08 21:45:33 jsm Exp $"); */ /* This struct[] has the delta x, delta y for particular directions */ -struct xy Visdelta[11] = -{ +static struct xy Visdelta[11] = { { -1, -1 }, { -1, 0 }, { -1, 1 }, @@ -73,8 +68,7 @@ struct xy Visdelta[11] = /*ARGSUSED*/ void -visual(z) - int z __attribute__((__unused__)); +visual(int z __unused) { int ix, iy; int co;