-/* $NetBSD: setup.c,v 1.5 1997/10/12 21:25:15 christos Exp $ */
+/* $NetBSD: setup.c,v 1.8 2003/08/07 09:37:54 agc Exp $ */
/*
* Copyright (c) 1980, 1993
* 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.
*
#if 0
static char sccsid[] = "@(#)setup.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: setup.c,v 1.5 1997/10/12 21:25:15 christos Exp $");
+__RCSID("$NetBSD: setup.c,v 1.8 2003/08/07 09:37:54 agc Exp $");
#endif
#endif /* not lint */
#include <stdio.h>
#include <math.h>
+#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <err.h>
** Game restart and tournament games are handled here.
*/
-struct cvntab Lentab[] =
+const struct cvntab Lentab[] =
{
{ "s", "hort", (cmdfun)1, 0 },
{ "m", "edium", (cmdfun)2, 0 },
{ NULL, NULL, NULL, 0 }
};
-struct cvntab Skitab[] =
+const struct cvntab Skitab[] =
{
{ "n", "ovice", (cmdfun)1, 0 },
{ "f", "air", (cmdfun)2, 0 },
void
setup()
{
- struct cvntab *r;
+ const struct cvntab *r;
int i, j;
double f;
int d;