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,4 +1,4 @@
/* $NetBSD: answer.c,v 1.3 1997/10/10 16:32:50 lukem Exp $ */
/* $NetBSD: answer.c,v 1.5 2003/02/26 07:14:45 jdc Exp $ */
/*
* Hunt
* Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold
@@ -7,7 +7,7 @@
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: answer.c,v 1.3 1997/10/10 16:32:50 lukem Exp $");
__RCSID("$NetBSD: answer.c,v 1.5 2003/02/26 07:14:45 jdc Exp $");
#endif /* not lint */
# include <ctype.h>
@@ -33,11 +33,12 @@ answer()
static int enter_status;
static int socklen;
static u_long machine;
static u_long uid;
static u_int32_t uid;
static SOCKET sockstruct;
char *cp1, *cp2;
int flags;
long version;
u_int32_t version;
int i;
# ifdef INTERNET
socklen = sizeof sockstruct;
@@ -124,9 +125,10 @@ answer()
# endif
# ifdef MONITOR
if (mode == C_MONITOR)
if (End_monitor < &Monitor[MAXMON])
if (End_monitor < &Monitor[MAXMON]) {
pp = End_monitor++;
else {
i = pp - Monitor + MAXPL + 3;
} else {
socklen = 0;
(void) write(newsock, (char *) &socklen,
sizeof socklen);
@@ -135,9 +137,10 @@ answer()
}
else
# endif
if (End_player < &Player[MAXPL])
if (End_player < &Player[MAXPL]) {
pp = End_player++;
else {
i = pp - Player + 3;
} else {
socklen = 0;
(void) write(newsock, (char *) &socklen,
sizeof socklen);
@@ -153,9 +156,8 @@ answer()
pp->p_output = fdopen(newsock, "w");
pp->p_death[0] = '\0';
pp->p_fd = newsock;
FD_SET(pp->p_fd, &Fds_mask);
if (pp->p_fd >= Num_fds)
Num_fds = pp->p_fd + 1;
fdset[i].fd = newsock;
fdset[i].events = POLLIN;
pp->p_y = 0;
pp->p_x = 0;