Index: uspace/app/tetris/input.c
===================================================================
--- uspace/app/tetris/input.c	(revision 0c25c10b972ef53d852bb84a0277997565177111)
+++ uspace/app/tetris/input.c	(revision d0febca9f86b5690d11fec7c645836a758567fe6)
@@ -37,5 +37,5 @@
 
 /** @addtogroup tetris
- * @{ 
+ * @{
  */
 /** @file
@@ -93,11 +93,10 @@
  *
  */
-int
-rwait(struct timeval *tvp)
+int rwait(struct timeval *tvp)
 {
 	struct timeval starttv, endtv, *s;
 	static ipc_call_t charcall;
 	ipcarg_t rc;
-
+	
 	/*
 	 * Someday, select() will do this for us.
@@ -111,5 +110,5 @@
 	} else
 		s = NULL;
-
+	
 	if (!lastchar) {
 again:
@@ -118,4 +117,5 @@
 			    CONSOLE_GET_EVENT, &charcall);
 		}
+		
 		if (!s)
 			async_wait_for(getchar_inprog, &rc);
@@ -125,20 +125,23 @@
 			return (0);
 		}
+		
 		getchar_inprog = 0;
-		if (rc) {
+		if (rc)
 			stop("end of file, help");
-		}
+		
 		if (IPC_GET_ARG1(charcall) == KEY_RELEASE)
 			goto again;
-
+		
 		lastchar = IPC_GET_ARG4(charcall);
 	}
+	
 	if (tvp) {
 		/* since there is input, we may not have timed out */
 		(void) gettimeofday(&endtv, NULL);
 		TV_SUB(&endtv, &starttv);
-		TV_SUB(tvp, &endtv);	/* adjust *tvp by elapsed time */
+		TV_SUB(tvp, &endtv);  /* adjust *tvp by elapsed time */
 	}
-	return (1);
+	
+	return 1;
 }
 
@@ -147,9 +150,8 @@
  * Eat any input that might be available.
  */
-void
-tsleep(void)
+void tsleep(void)
 {
 	struct timeval tv;
-
+	
 	tv.tv_sec = 0;
 	tv.tv_usec = fallrate;
@@ -164,10 +166,9 @@
  * getchar with timeout.
  */
-int
-tgetchar(void)
+int tgetchar(void)
 {
 	static struct timeval timeleft;
 	char c;
-
+	
 	/*
 	 * Reset timeleft to fallrate whenever it is not positive.
@@ -180,16 +181,17 @@
 	 */
 	if (!TV_POS(&timeleft)) {
-		faster();	/* go faster */
+		faster();  /* go faster */
 		timeleft.tv_sec = 0;
 		timeleft.tv_usec = fallrate;
 	}
+	
 	if (!rwait(&timeleft))
-		return (-1);
+		return -1;
+	
 	c = lastchar;
 	lastchar = '\0';
-	return ((int)(unsigned char)c);
+	return ((int) (unsigned char) c);
 }
 
 /** @}
  */
-
