New upstream source

git-svn-id: file:///srv/svn/joey/bsdgames-trunk@5120 a4a2c43b-8ac3-0310-8836-e0e880c912e2
This commit is contained in:
joey
2000-02-13 00:36:01 +00:00
parent 23031dbd8c
commit a3aafcdda8
11 changed files with 51 additions and 23 deletions

View File

@@ -1,4 +1,4 @@
/* $NetBSD: scores.c,v 1.8 1999/09/18 19:38:55 jsm Exp $ */
/* $NetBSD: scores.c,v 1.10 2000/01/21 02:10:56 jsm Exp $ */
/*-
* Copyright (c) 1992, 1993

View File

@@ -1,4 +1,4 @@
/* $NetBSD: tetris.c,v 1.12 1999/09/12 09:02:24 jsm Exp $ */
/* $NetBSD: tetris.c,v 1.14 2000/01/21 02:10:57 jsm Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -50,6 +50,7 @@ __COPYRIGHT("@(#) Copyright (c) 1992, 1993\n\
#include <sys/time.h>
#include <err.h>
#include <fcntl.h>
#include <signal.h>
#include <stdio.h>
@@ -159,10 +160,8 @@ main(argc, argv)
case 'l':
level = atoi(optarg);
if (level < MINLEVEL || level > MAXLEVEL) {
(void)fprintf(stderr,
"tetris-bsd: level must be from %d to %d\n",
MINLEVEL, MAXLEVEL);
exit(1);
errx(1, "tetris-bsd: level must be from %d to %d",
MINLEVEL, MAXLEVEL);
}
break;
case 'p':
@@ -187,10 +186,7 @@ main(argc, argv)
for (i = 0; i <= 5; i++) {
for (j = i+1; j <= 5; j++) {
if (keys[i] == keys[j]) {
(void)fprintf(stderr,
"%s: duplicate command keys specified.\n",
argv[0]);
exit (1);
errx(1, "duplicate command keys specified.");
}
}
if (keys[i] == ' ')