releasing version 2.17-1

git-svn-id: file:///srv/svn/joey/trunk/src/packages/bsdgames@11092 a4a2c43b-8ac3-0310-8836-e0e880c912e2
This commit is contained in:
joey
2005-02-18 18:44:27 +00:00
parent 3d248f5d00
commit 00d2970fb5
126 changed files with 786 additions and 778 deletions

View File

@@ -1,7 +0,0 @@
a.out
*.d
*.i
*.s
*.d.tmp
sail
pathnames.h

View File

@@ -1,4 +1,4 @@
/* $NetBSD: dr_1.c,v 1.19 2003/08/07 09:37:41 agc Exp $ */
/* $NetBSD: dr_1.c,v 1.21 2004/11/05 21:30:32 dsl Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)dr_1.c 8.1 (Berkeley) 5/31/93";
#else
__RCSID("$NetBSD: dr_1.c,v 1.19 2003/08/07 09:37:41 agc Exp $");
__RCSID("$NetBSD: dr_1.c,v 1.21 2004/11/05 21:30:32 dsl Exp $");
#endif
#endif /* not lint */
@@ -425,14 +425,11 @@ next(void)
if (tp == 0)
p = "Driver";
else {
if (islower(*tp))
*tp = toupper(*tp);
*tp = toupper((unsigned char)*tp);
p = tp;
}
strncpy(bestship->file->captain, p,
strlcpy(bestship->file->captain, p,
sizeof bestship->file->captain);
bestship->file->captain
[sizeof bestship->file->captain - 1] = 0;
logger(bestship);
}
return -1;

View File

@@ -1,4 +1,4 @@
/* $NetBSD: misc.c,v 1.14 2004/02/08 00:32:48 jsm Exp $ */
/* $NetBSD: misc.c,v 1.15 2004/11/05 21:30:32 dsl Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)misc.c 8.2 (Berkeley) 4/28/95";
#else
__RCSID("$NetBSD: misc.c,v 1.14 2004/02/08 00:32:48 jsm Exp $");
__RCSID("$NetBSD: misc.c,v 1.15 2004/11/05 21:30:32 dsl Exp $");
#endif
#endif /* not lint */
@@ -190,7 +190,7 @@ colours(struct ship *sp)
if (sp->file->struck)
return flag;
flag = *countryname[capship(sp)->nationality];
return sp->file->FS ? flag : tolower(flag);
return sp->file->FS ? flag : tolower((unsigned char)flag);
}
void

View File

@@ -1,4 +1,4 @@
/* $NetBSD: pl_4.c,v 1.14 2003/08/07 09:37:44 agc Exp $ */
/* $NetBSD: pl_4.c,v 1.15 2004/11/05 21:30:32 dsl Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)pl_4.c 8.1 (Berkeley) 5/31/93";
#else
__RCSID("$NetBSD: pl_4.c,v 1.14 2003/08/07 09:37:44 agc Exp $");
__RCSID("$NetBSD: pl_4.c,v 1.15 2004/11/05 21:30:32 dsl Exp $");
#endif
#endif /* not lint */
@@ -95,7 +95,7 @@ lookout(void)
sgetstr("What ship? ", buf, sizeof buf);
foreachship(sp) {
c = *countryname[sp->nationality];
if ((c == *buf || tolower(c) == *buf || colours(sp) == *buf)
if ((tolower((unsigned char)c) == *buf || colours(sp) == *buf)
&& (sp->file->stern == buf[1] || sterncolour(sp) == buf[1]
|| buf[1] == '?')) {
eyeball(sp);

View File

@@ -1,4 +1,4 @@
/* $NetBSD: pl_5.c,v 1.16 2003/08/07 09:37:44 agc Exp $ */
/* $NetBSD: pl_5.c,v 1.17 2004/11/05 21:30:32 dsl Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)pl_5.c 8.1 (Berkeley) 5/31/93";
#else
__RCSID("$NetBSD: pl_5.c,v 1.16 2003/08/07 09:37:44 agc Exp $");
__RCSID("$NetBSD: pl_5.c,v 1.17 2004/11/05 21:30:32 dsl Exp $");
#endif
#endif /* not lint */
@@ -122,7 +122,7 @@ acceptmove(void)
*p-- = '\0';
break;
default:
if (!isspace(*p)) {
if (!isspace((unsigned char)*p)) {
Msg("Input error.");
*p-- = '\0';
}

View File

@@ -1,4 +1,4 @@
/* $NetBSD: sync.c,v 1.22 2004/01/27 20:27:59 jsm Exp $ */
/* $NetBSD: sync.c,v 1.23 2004/09/07 13:20:39 jrf Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)sync.c 8.2 (Berkeley) 4/28/95";
#else
__RCSID("$NetBSD: sync.c,v 1.22 2004/01/27 20:27:59 jsm Exp $");
__RCSID("$NetBSD: sync.c,v 1.23 2004/09/07 13:20:39 jrf Exp $");
#endif
#endif /* not lint */
@@ -380,9 +380,8 @@ sync_update(int type, struct ship *ship, const char *astr, long a, long b, long
break;
}
case W_CAPTAIN:
strncpy(ship->file->captain, astr,
sizeof ship->file->captain - 1);
ship->file->captain[sizeof ship->file->captain - 1] = 0;
strlcpy(ship->file->captain, astr,
sizeof ship->file->captain);
break;
case W_CAPTURED:
if (a < 0)
@@ -419,9 +418,8 @@ sync_update(int type, struct ship *ship, const char *astr, long a, long b, long
ship->specs->hull = a;
break;
case W_MOVE:
strncpy(ship->file->movebuf, astr,
sizeof ship->file->movebuf - 1);
ship->file->movebuf[sizeof ship->file->movebuf - 1] = 0;
strlcpy(ship->file->movebuf, astr,
sizeof ship->file->movebuf);
break;
case W_PCREW:
ship->file->pcrew = a;