copy in from cvs; cvs2svn fucked up big time

git-svn-id: file:///srv/svn/joey/trunk/src/packages/bsdgames@9775 a4a2c43b-8ac3-0310-8836-e0e880c912e2
This commit is contained in:
joey
2003-12-19 19:12:08 +00:00
parent 351c8ca204
commit 51eabc017b
310 changed files with 7852 additions and 5005 deletions

View File

@@ -1,10 +1,11 @@
# $NetBSD: Makefile,v 1.4 1997/10/22 05:26:25 lukem Exp $
# $NetBSD: Makefile,v 1.7 2002/09/18 06:16:41 lukem Exp $
# @(#)Makefile 8.1 (Berkeley) 5/31/93
PROG= snscore
CPPFLAGS+=-I${.CURDIR}/../snake
NOMAN= noman
HIDEGAME=hidegame
NOMAN= # defined
PROG= snscore
CPPFLAGS+= -I${.CURDIR}/../snake
HIDEGAME= hidegame
.include "../../Makefile.inc"
.include <bsd.prog.mk>

View File

@@ -1,4 +1,30 @@
# Makefrag - makefile fragment for snake/snscore
#
# Copyright (c) 1997, 1998 Joseph Samuel Myers.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 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. The name of the author may not be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
snake_snscore_DIRS := $(GAMESDIR) $(MAN6DIR)
snake_snscore_INCS := -Isnake/snake

View File

@@ -1,4 +1,4 @@
/* $NetBSD: snscore.c,v 1.8 1998/09/11 14:25:22 hubertf Exp $ */
/* $NetBSD: snscore.c,v 1.13 2000/05/08 07:56:05 mycroft Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\
#if 0
static char sccsid[] = "@(#)snscore.c 8.1 (Berkeley) 7/19/93";
#else
__RCSID("$NetBSD: snscore.c,v 1.8 1998/09/11 14:25:22 hubertf Exp $");
__RCSID("$NetBSD: snscore.c,v 1.13 2000/05/08 07:56:05 mycroft Exp $");
#endif
#endif /* not lint */
@@ -56,7 +56,7 @@ __RCSID("$NetBSD: snscore.c,v 1.8 1998/09/11 14:25:22 hubertf Exp $");
#include <unistd.h>
#include "pathnames.h"
char *recfile = _PATH_RAWSCORES;
const char *recfile = _PATH_RAWSCORES;
#define MAXPLAYERS 65534
struct player {
@@ -105,8 +105,9 @@ main()
if (p == NULL)
continue;
q = p -> pw_name;
players[noplayers].name = malloc(strlen(q) + 1);
strcpy(players[noplayers].name, q);
players[noplayers].name = strdup(q);
if (players[noplayers].name == NULL)
err(1, NULL);
noplayers++;
}
}