mirror of
https://github.com/vattam/BSDGames.git
synced 2025-12-21 03:14:50 +00:00
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:
@@ -1,7 +0,0 @@
|
||||
a.out
|
||||
*.d
|
||||
*.i
|
||||
*.s
|
||||
*.d.tmp
|
||||
hunt
|
||||
hunt.6
|
||||
@@ -1,4 +1,4 @@
|
||||
/* $NetBSD: hunt.c,v 1.22 2004/02/08 22:23:50 jsm Exp $ */
|
||||
/* $NetBSD: hunt.c,v 1.23 2004/11/05 21:30:32 dsl Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1983-2003, Regents of the University of California.
|
||||
* All rights reserved.
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: hunt.c,v 1.22 2004/02/08 22:23:50 jsm Exp $");
|
||||
__RCSID("$NetBSD: hunt.c,v 1.23 2004/11/05 21:30:32 dsl Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
# include <sys/param.h>
|
||||
@@ -149,7 +149,7 @@ main(ac, av)
|
||||
break;
|
||||
case 't':
|
||||
team = *optarg;
|
||||
if (!isdigit(team)) {
|
||||
if (!isdigit((unsigned char)team)) {
|
||||
warnx("Team names must be numeric");
|
||||
team = ' ';
|
||||
}
|
||||
@@ -1065,7 +1065,7 @@ env_init(enter_status)
|
||||
# endif
|
||||
else if (strncmp(envp, "team=", s - envp + 1) == 0) {
|
||||
team = *(s + 1);
|
||||
if (!isdigit(team))
|
||||
if (!isdigit((unsigned char)team))
|
||||
team = ' ';
|
||||
if ((s = strchr(envp, ',')) == NULL) {
|
||||
*envp = '\0';
|
||||
@@ -1128,7 +1128,7 @@ again:
|
||||
goto again;
|
||||
}
|
||||
for (cp = name; *cp != '\0'; cp++)
|
||||
if (!isprint(*cp)) {
|
||||
if (!isprint((unsigned char)*cp)) {
|
||||
name[0] = '\0';
|
||||
printf("Illegal character in your code name.\n");
|
||||
goto again;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* $NetBSD: otto.c,v 1.7 2004/02/08 22:23:50 jsm Exp $ */
|
||||
/* $NetBSD: otto.c,v 1.8 2004/11/05 21:30:32 dsl Exp $ */
|
||||
# ifdef OTTO
|
||||
/*
|
||||
* Copyright (c) 1983-2003, Regents of the University of California.
|
||||
@@ -45,7 +45,7 @@
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: otto.c,v 1.7 2004/02/08 22:23:50 jsm Exp $");
|
||||
__RCSID("$NetBSD: otto.c,v 1.8 2004/11/05 21:30:32 dsl Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
# include <sys/time.h>
|
||||
@@ -438,7 +438,7 @@ face_and_move_direction(rel_dir, distance)
|
||||
int i;
|
||||
struct item items[NUMDIRECTIONS];
|
||||
|
||||
command[comlen++] = toupper(cmd);
|
||||
command[comlen++] = toupper((unsigned char)cmd);
|
||||
if (distance == 0) {
|
||||
/* rotate ottolook's to be in right position */
|
||||
for (i = 0; i < NUMDIRECTIONS; i++)
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
a.out
|
||||
*.d
|
||||
*.i
|
||||
*.s
|
||||
*.d.tmp
|
||||
huntd
|
||||
huntd.6
|
||||
@@ -1,4 +1,4 @@
|
||||
/* $NetBSD: answer.c,v 1.6 2003/06/11 12:00:22 wiz Exp $ */
|
||||
/* $NetBSD: answer.c,v 1.7 2004/11/05 21:30:32 dsl Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1983-2003, Regents of the University of California.
|
||||
* All rights reserved.
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: answer.c,v 1.6 2003/06/11 12:00:22 wiz Exp $");
|
||||
__RCSID("$NetBSD: answer.c,v 1.7 2004/11/05 21:30:32 dsl Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
# include <ctype.h>
|
||||
@@ -116,7 +116,7 @@ answer()
|
||||
* between driver and player processes
|
||||
*/
|
||||
for (cp1 = cp2 = name; *cp1 != '\0'; cp1++)
|
||||
if (isprint(*cp1) || *cp1 == ' ')
|
||||
if (isprint((unsigned char)*cp1) || *cp1 == ' ')
|
||||
*cp2++ = *cp1;
|
||||
*cp2 = '\0';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user