Index: tetris/input.c
===================================================================
--- tetris/input.c	(revision f5e483034a17b137dfe510936e087d7ab812fc54)
+++ tetris/input.c	(revision 09087d23b91c8b197f3dea51ee0b4dd0a6b2a18b)
@@ -109,5 +109,5 @@
 	} else
 		s = NULL;
-again:
+
 	if (!lastchar) {
 		if (!getchar_inprog)
@@ -143,5 +143,4 @@
 {
 	struct timeval tv;
-	char c;
 
 	tv.tv_sec = 0;
Index: tetris/screen.c
===================================================================
--- tetris/screen.c	(revision f5e483034a17b137dfe510936e087d7ab812fc54)
+++ tetris/screen.c	(revision 09087d23b91c8b197f3dea51ee0b4dd0a6b2a18b)
@@ -62,11 +62,4 @@
 static int curscore;
 static int isset;		/* true => terminal is in game mode */
-static void (*tstp)(int);
-
-static void	scr_stop(int);
-static void	stopset(int);
-
-static char
-        *CEstr;			/* clear to end of line */
 
 
@@ -147,13 +140,4 @@
 {
 	return async_req_2(con_phone, CONSOLE_GETSIZE, 0, 0, &ws->ws_row, &ws->ws_col);
-}
-
-static void
-scr_stop(int sig)
-{
-
-	scr_end();
-	scr_set();
-	scr_msg(key_msg, 1);
 }
 
Index: tetris/tetris.c
===================================================================
--- tetris/tetris.c	(revision f5e483034a17b137dfe510936e087d7ab812fc54)
+++ tetris/tetris.c	(revision 09087d23b91c8b197f3dea51ee0b4dd0a6b2a18b)
@@ -164,8 +164,4 @@
 	gettimeofday(&tv, NULL);
 	srandom(tv.tv_sec + tv.tv_usec / 100000);
-}
-
-static void tetris_scores(int firstgame)
-{
 }
 
@@ -260,6 +256,5 @@
 	int level = 2;
 	char key_write[6][10];
-	const char *errstr;
-	int ch, i, j;
+	int i, j;
 
 	keys = "jkl pq";
@@ -451,5 +446,6 @@
 */
 	scr_end();
-	exit(0);
+
+	return 0;
 }
 
