Index: uspace/app/bdsh/cmds/modules/cat/cat.c
===================================================================
--- uspace/app/bdsh/cmds/modules/cat/cat.c	(revision 9904eb90403c954baeba44936b6c146c62a3563d)
+++ uspace/app/bdsh/cmds/modules/cat/cat.c	(revision e43553758fa0974fa6ac8d0710b1699049d36e17)
@@ -176,12 +176,12 @@
 
 	bool reading_stdin = dash_represents_stdin && (str_cmp(fname, "-") == 0);
-
+	
 	if (reading_stdin) {
 		fd = fileno(stdin);
 		/* Allow storing the whole UTF-8 character. */
 		blen = STR_BOUNDS(1);
-	} else {
+	} else
 		fd = open(fname, O_RDONLY);
-	}
+	
 	if (fd < 0) {
 		printf("Unable to open %s\n", fname);
@@ -222,6 +222,6 @@
 			bytes_to_read = 1;
 		} else {
-			if ((length != CAT_FULL_FILE)
-			    && (length - (off64_t)count <= (off64_t)(blen - copied_bytes))) {
+			if ((length != CAT_FULL_FILE) &&
+			    (length - (off64_t)count <= (off64_t)(blen - copied_bytes))) {
 				bytes_to_read = (size_t) (length - count);
 			} else {
@@ -229,4 +229,5 @@
 			}
 		}
+		
 		bytes = read(fd, buff + copied_bytes, bytes_to_read);
 		bytes += copied_bytes;
@@ -261,8 +262,7 @@
 			reads++;
 		}
-
-		if (reading_stdin) {
+		
+		if (reading_stdin)
 			fflush(stdout);
-		}
 	} while (bytes > 0 && !should_quit && (count < length || length == CAT_FULL_FILE));
 
Index: uspace/srv/hid/console/console.c
===================================================================
--- uspace/srv/hid/console/console.c	(revision 9904eb90403c954baeba44936b6c146c62a3563d)
+++ uspace/srv/hid/console/console.c	(revision e43553758fa0974fa6ac8d0710b1699049d36e17)
@@ -617,5 +617,5 @@
 	
 	size_t pos = 0;
-
+	
 	/*
 	 * Read input from keyboard and copy it to the buffer.
@@ -628,15 +628,17 @@
 			buf[pos] = cons->char_remains[0];
 			pos++;
+			
 			/* Unshift the array. */
-			for (size_t i = 1; i < cons->char_remains_len; i++) {
+			for (size_t i = 1; i < cons->char_remains_len; i++)
 				cons->char_remains[i - 1] = cons->char_remains[i];
-			}
+			
 			cons->char_remains_len--;
 		}
+		
 		/* Still not enough? Then get another key from the queue. */
 		if (pos < size) {
 			link_t *link = prodcons_consume(&cons->input_pc);
 			kbd_event_t *event = list_get_instance(link, kbd_event_t, link);
-
+			
 			/* Accept key presses of printable chars only. */
 			if ((event->type == KEY_PRESS) && (event->c != 0)) {
@@ -645,5 +647,5 @@
 				cons->char_remains_len = str_size(cons->char_remains);
 			}
-
+			
 			free(event);
 		}
