Subject: bin/7205: newline and usage cosmetics in tetris
To: None <gnats-bugs@gnats.netbsd.org>
From: Soren S. Jorvang <soren@t.dk>
List: netbsd-bugs
Date: 03/21/1999 23:42:00
>Number:         7205
>Category:       bin
>Synopsis:       newline and usage cosmetics in tetris
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 21 16:50:01 1999
>Last-Modified:
>Originator:     Soren S. Jorvang
>Organization:
Soren
>Release:        NetBSD-current
>Environment:
System: NetBSD 1.3K


>Description:
tetris.c is missing a newline. Also a little other cosmetics.


>How-To-Repeat:
Seek higher levels of procrastination.


>Fix:
--- src/games/tetris/tetris.c.orig	Sun Mar 21 23:34:30 1999
+++ src/games/tetris/tetris.c	Sun Mar 21 23:38:32 1999
@@ -134,7 +134,7 @@
 			level = atoi(optarg);
 			if (level < MINLEVEL || level > MAXLEVEL) {
 				(void)fprintf(stderr,
-				    "tetris: level must be from %d to %d",
+				    "tetris: level must be from %d to %d\n",
 				    MINLEVEL, MAXLEVEL);
 				exit(1);
 			}
@@ -162,7 +162,7 @@
 		for (j = i+1; j <= 5; j++) {
 			if (keys[i] == keys[j]) {
 				(void)fprintf(stderr,
-				    "%s: Duplicate command keys specified.\n",
+				    "%s: duplicate command keys specified.\n",
 				    argv[0]);
 				exit (1);
 			}
@@ -314,6 +314,6 @@
 void
 usage()
 {
-	(void)fprintf(stderr, "usage: tetris [-ps] [-l level] [-keys]\n");
+	(void)fprintf(stderr, "usage: tetris [-ps] [-k keys] [-l level]\n");
 	exit(1);
 }
>Audit-Trail:
>Unformatted: