commit - 11a5e2cf2a04c33a0fd3cf1ff80762abe46c5e86
commit + 60af955760fad578fa6ffb0444dc813c1dcceada
blob - 46427a9bcabe3545a145756e26fa456dde1a2925
blob + 8445f36026cb2591b73ace86b6bda1f132a72eb4
--- Makefile
+++ Makefile
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
}
/* 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 */
read32(int32_t val, int doflip)
{
if (doflip) {
- val = bswap32(val);
+ val = swap32(val);
}
return val;
}
read64(int64_t val, int doflip)
{
if (doflip) {
- val = bswap64(val);
+ val = swap64(val);
}
return val;
}
blob - 3e4a734f8986e686e884f4f2597ef9494b628701
blob + d3b23166dc311dd733a2b0475e594b12b069ea56
--- screen.c
+++ screen.c
static void scr_stop(int);
static void stopset(int) __dead;
+
+extern int ospeed;
/*
blob - b8612c2c8fe35855035967b269a9cec6f96d3ccc
blob + fee0535bfb821ec42575c8fd6fe686d93f9c2f06
--- tetris.c
+++ tetris.c
*/
#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 */