Commit Diff


commit - 11a5e2cf2a04c33a0fd3cf1ff80762abe46c5e86
commit + 60af955760fad578fa6ffb0444dc813c1dcceada
blob - 46427a9bcabe3545a145756e26fa456dde1a2925
blob + 8445f36026cb2591b73ace86b6bda1f132a72eb4
--- Makefile
+++ Makefile
@@ -5,7 +5,7 @@ PROG=	tetris
 SRCS=	input.c screen.c shapes.c scores.c tetris.c
 MAN=	tetris.6
 DPADD=	${LIBTERMINFO}
-LDADD=	-lterminfo
+LDADD=	-lncurses
 HIDEGAME=hidegame
 SETGIDGAME=yes
 
blob - 1c7e31bfceae1c4062d2cea0f9ef519d3de26fde
blob + c759b7a1df1590c07f02959f3af8069962e1c306
--- scores.c
+++ scores.c
@@ -220,9 +220,9 @@ scorefile_probe(int sd)
 	}
 
 	/* None was a valid level; try opposite endian */
-	offset64 = bswap32(offset64);
-	offset60 = bswap32(offset60);
-	offset56 = bswap32(offset56);
+	offset64 = swap32(offset64);
+	offset60 = swap32(offset60);
+	offset56 = swap32(offset56);
 
 	if (offset64 >= MINLEVEL && offset64 <= MAXLEVEL) {
 		/* 40-byte structure */
@@ -267,7 +267,7 @@ static int32_t
 read32(int32_t val, int doflip)
 {
 	if (doflip) {
-		val = bswap32(val);
+		val = swap32(val);
 	}
 	return val;
 }
@@ -276,7 +276,7 @@ static int64_t
 read64(int64_t val, int doflip)
 {
 	if (doflip) {
-		val = bswap64(val);
+		val = swap64(val);
 	}
 	return val;
 }
blob - 3e4a734f8986e686e884f4f2597ef9494b628701
blob + d3b23166dc311dd733a2b0475e594b12b069ea56
--- screen.c
+++ screen.c
@@ -65,6 +65,8 @@ static void (*tstp)(int);
 
 static	void	scr_stop(int);
 static	void	stopset(int) __dead;
+
+extern int ospeed;
 
 
 /*
blob - b8612c2c8fe35855035967b269a9cec6f96d3ccc
blob + fee0535bfb821ec42575c8fd6fe686d93f9c2f06
--- tetris.c
+++ tetris.c
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-#ifndef lint
+#if !defined(lint) && !defined(__OpenBSD__)
 __COPYRIGHT("@(#) Copyright (c) 1992, 1993\
  The Regents of the University of California.  All rights reserved.");
 #endif /* not lint */