Index: uspace/app/bdsh/cmds/modules/mkdir/mkdir.c
===================================================================
--- uspace/app/bdsh/cmds/modules/mkdir/mkdir.c	(revision a69d42e063015b31f1b430429f3a03ea17fdc9de)
+++ uspace/app/bdsh/cmds/modules/mkdir/mkdir.c	(revision 76d0981d8dda2b7d698201a93e0c555e99215ba5)
@@ -27,4 +27,5 @@
  */
 
+#include <stdbool.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -106,5 +107,5 @@
 		/* Create the parent directories as well. */
 		size_t off = 0;
-		while (1) {
+		while (true) {
 			size_t prev_off = off;
 			wchar_t cur_char = str_decode(path, &off, STR_NO_LIMIT);
Index: uspace/app/mkbd/main.c
===================================================================
--- uspace/app/mkbd/main.c	(revision a69d42e063015b31f1b430429f3a03ea17fdc9de)
+++ uspace/app/mkbd/main.c	(revision 76d0981d8dda2b7d698201a93e0c555e99215ba5)
@@ -171,5 +171,5 @@
 	printf("Press <ESC> to quit the application.\n");
 
-	while (1) {
+	while (true) {
 		cons_event_t ev;
 		bool ok = console_get_event(con, &ev);
Index: uspace/app/tetris/scores.c
===================================================================
--- uspace/app/tetris/scores.c	(revision a69d42e063015b31f1b430429f3a03ea17fdc9de)
+++ uspace/app/tetris/scores.c	(revision 76d0981d8dda2b7d698201a93e0c555e99215ba5)
@@ -59,4 +59,5 @@
 
 #include <errno.h>
+#include <stdbool.h>
 #include <stdio.h>
 #include <str.h>
@@ -138,5 +139,5 @@
 	    "........................................");
 
-	while (1) {
+	while (true) {
 		console_flush(console);
 		if (!console_get_event(console, &ev))
Index: uspace/app/tetris/tetris.c
===================================================================
--- uspace/app/tetris/tetris.c	(revision a69d42e063015b31f1b430429f3a03ea17fdc9de)
+++ uspace/app/tetris/tetris.c	(revision 76d0981d8dda2b7d698201a93e0c555e99215ba5)
@@ -57,4 +57,5 @@
 #include <sys/time.h>
 #include <errno.h>
+#include <stdbool.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -200,5 +201,5 @@
 {
 	tetris_menu_draw(*level);
-	while (1) {
+	while (true) {
 		int i = getchar();
 
@@ -327,5 +328,5 @@
 		scr_msg(key_msg, 1);
 
-		while (1) {
+		while (true) {
 			place(curshape, pos, 1);
 			scr_update();
Index: uspace/app/wavplay/dplay.c
===================================================================
--- uspace/app/wavplay/dplay.c	(revision a69d42e063015b31f1b430429f3a03ea17fdc9de)
+++ uspace/app/wavplay/dplay.c	(revision 76d0981d8dda2b7d698201a93e0c555e99215ba5)
@@ -44,5 +44,5 @@
 #include <sys/time.h>
 #include <inttypes.h>
-
+#include <stdbool.h>
 #include <stdio.h>
 #include <macros.h>
@@ -101,5 +101,5 @@
 	playback_t *pb = arg;
 	const size_t fragment_size = pb->buffer.size / DEFAULT_FRAGMENTS;
-	while (1) {
+	while (true) {
 		ipc_call_t call;
 		cap_call_handle_t chandle = async_get_call(&call);
@@ -260,5 +260,5 @@
 	struct timeval time = { 0 };
 	getuptime(&time);
-	do {
+	while (true) {
 		size_t available = buffer_avail(pb, pos);
 		/* Writing might need wrap around the end,
@@ -324,5 +324,5 @@
 			break;
 
-	} while (1);
+	}
 	audio_pcm_stop_playback_immediate(pb->device);
 }
Index: uspace/dist/src/c/demos/tetris/scores.c
===================================================================
--- uspace/dist/src/c/demos/tetris/scores.c	(revision a69d42e063015b31f1b430429f3a03ea17fdc9de)
+++ uspace/dist/src/c/demos/tetris/scores.c	(revision 76d0981d8dda2b7d698201a93e0c555e99215ba5)
@@ -64,4 +64,5 @@
 #include <io/keycode.h>
 #include <vfs/vfs.h>
+#include <stdbool.h>
 #include <stdlib.h>
 #include <err.h>
@@ -139,5 +140,5 @@
 	    "........................................");
 
-	while (1) {
+	while (true) {
 		console_flush(console);
 		if (!console_get_event(console, &ev))
Index: uspace/dist/src/c/demos/tetris/tetris.c
===================================================================
--- uspace/dist/src/c/demos/tetris/tetris.c	(revision a69d42e063015b31f1b430429f3a03ea17fdc9de)
+++ uspace/dist/src/c/demos/tetris/tetris.c	(revision 76d0981d8dda2b7d698201a93e0c555e99215ba5)
@@ -58,4 +58,5 @@
 #include <err.h>
 #include <errno.h>
+#include <stdbool.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -201,5 +202,5 @@
 {
 	tetris_menu_draw(*level);
-	while (1) {
+	while (true) {
 		int i = getchar();
 
@@ -326,5 +327,5 @@
 		scr_msg(key_msg, 1);
 
-		while (1) {
+		while (true) {
 			place(curshape, pos, 1);
 			scr_update();
Index: uspace/drv/bus/usb/uhci/hc.c
===================================================================
--- uspace/drv/bus/usb/uhci/hc.c	(revision a69d42e063015b31f1b430429f3a03ea17fdc9de)
+++ uspace/drv/bus/usb/uhci/hc.c	(revision 76d0981d8dda2b7d698201a93e0c555e99215ba5)
@@ -44,4 +44,5 @@
 #include <macros.h>
 #include <mem.h>
+#include <stdbool.h>
 #include <stdlib.h>
 #include <stdint.h>
@@ -607,5 +608,5 @@
 	instance->transfers_##queue.queue_head
 
-	while (1) {
+	while (true) {
 		const uint16_t cmd = pio_read_16(&instance->registers->usbcmd);
 		const uint16_t sts = pio_read_16(&instance->registers->usbsts);
Index: uspace/drv/char/ski-con/ski-con.c
===================================================================
--- uspace/drv/char/ski-con/ski-con.c	(revision a69d42e063015b31f1b430429f3a03ea17fdc9de)
+++ uspace/drv/char/ski-con/ski-con.c	(revision 76d0981d8dda2b7d698201a93e0c555e99215ba5)
@@ -134,6 +134,6 @@
 	errno_t rc;
 
-	while (1) {
-		while (1) {
+	while (true) {
+		while (true) {
 			c = ski_con_getchar();
 			if (c == 0)
Index: uspace/drv/hid/ps2mouse/ps2mouse.c
===================================================================
--- uspace/drv/hid/ps2mouse/ps2mouse.c	(revision a69d42e063015b31f1b430429f3a03ea17fdc9de)
+++ uspace/drv/hid/ps2mouse/ps2mouse.c	(revision 76d0981d8dda2b7d698201a93e0c555e99215ba5)
@@ -254,5 +254,5 @@
 
 	bool buttons[PS2_BUTTON_COUNT] = {};
-	while (1) {
+	while (true) {
 		uint8_t packet[PS2_BUFSIZE] = {};
 		rc = ps2_mouse_read_packet(mouse, packet, PS2_BUFSIZE);
@@ -306,5 +306,5 @@
 
 	bool buttons[INTELLIMOUSE_BUTTON_COUNT] = {};
-	while (1) {
+	while (true) {
 		uint8_t packet[INTELLIMOUSE_BUFSIZE] = {};
 		rc = ps2_mouse_read_packet(mouse, packet, INTELLIMOUSE_BUFSIZE);
Index: uspace/drv/hid/usbhid/mouse/mousedev.c
===================================================================
--- uspace/drv/hid/usbhid/mouse/mousedev.c	(revision a69d42e063015b31f1b430429f3a03ea17fdc9de)
+++ uspace/drv/hid/usbhid/mouse/mousedev.c	(revision 76d0981d8dda2b7d698201a93e0c555e99215ba5)
@@ -43,4 +43,5 @@
 #include <errno.h>
 #include <async.h>
+#include <stdbool.h>
 #include <str_error.h>
 #include <ipc/mouseev.h>
@@ -299,5 +300,5 @@
 
 	/* Break from within. */
-	while (1) {
+	while (true) {
 		field = usb_hid_report_get_sibling(
 		    report, field, path,
Index: uspace/drv/intctl/obio/obio.c
===================================================================
--- uspace/drv/intctl/obio/obio.c	(revision a69d42e063015b31f1b430429f3a03ea17fdc9de)
+++ uspace/drv/intctl/obio/obio.c	(revision 76d0981d8dda2b7d698201a93e0c555e99215ba5)
@@ -86,5 +86,5 @@
 	obio = (obio_t *)ddf_dev_data_get(ddf_fun_get_dev((ddf_fun_t *)arg));
 
-	while (1) {
+	while (true) {
 		int inr;
 
Index: uspace/lib/c/generic/libc.c
===================================================================
--- uspace/lib/c/generic/libc.c	(revision a69d42e063015b31f1b430429f3a03ea17fdc9de)
+++ uspace/lib/c/generic/libc.c	(revision 76d0981d8dda2b7d698201a93e0c555e99215ba5)
@@ -43,4 +43,5 @@
 #include <errno.h>
 #include <libc.h>
+#include <stdbool.h>
 #include <stdlib.h>
 #include <tls.h>
@@ -138,5 +139,5 @@
 
 	/* Unreachable */
-	while (1)
+	while (true)
 		;
 }
@@ -147,5 +148,5 @@
 
 	/* Unreachable */
-	while (1)
+	while (true)
 		;
 }
Index: uspace/lib/c/generic/thread.c
===================================================================
--- uspace/lib/c/generic/thread.c	(revision a69d42e063015b31f1b430429f3a03ea17fdc9de)
+++ uspace/lib/c/generic/thread.c	(revision 76d0981d8dda2b7d698201a93e0c555e99215ba5)
@@ -35,4 +35,5 @@
 #include <thread.h>
 #include <libc.h>
+#include <stdbool.h>
 #include <stdlib.h>
 #include <libarch/faddr.h>
@@ -157,5 +158,5 @@
 
 	/* Unreachable */
-	while (1)
+	while (true)
 		;
 }
Index: uspace/lib/ext4/src/balloc.c
===================================================================
--- uspace/lib/ext4/src/balloc.c	(revision a69d42e063015b31f1b430429f3a03ea17fdc9de)
+++ uspace/lib/ext4/src/balloc.c	(revision 76d0981d8dda2b7d698201a93e0c555e99215ba5)
@@ -36,4 +36,5 @@
 
 #include <errno.h>
+#include <stdbool.h>
 #include <stdint.h>
 #include "ext4/balloc.h"
@@ -274,5 +275,5 @@
 		ibmap = -1;
 
-	while (1) {
+	while (true) {
 		if (r == bbmap || r == ibmap)
 			r++;
Index: uspace/lib/hound/src/protocol.c
===================================================================
--- uspace/lib/hound/src/protocol.c	(revision a69d42e063015b31f1b430429f3a03ea17fdc9de)
+++ uspace/lib/hound/src/protocol.c	(revision 76d0981d8dda2b7d698201a93e0c555e99215ba5)
@@ -39,4 +39,5 @@
 #include <macros.h>
 #include <str.h>
+#include <stdbool.h>
 #include <stdlib.h>
 #include <stdio.h>
@@ -401,5 +402,5 @@
 	}
 
-	while (1) {
+	while (true) {
 		ipc_call_t call;
 		cap_call_handle_t chandle = async_get_call(&call);
Index: uspace/lib/pcut/src/preproc.c
===================================================================
--- uspace/lib/pcut/src/preproc.c	(revision a69d42e063015b31f1b430429f3a03ea17fdc9de)
+++ uspace/lib/pcut/src/preproc.c	(revision 76d0981d8dda2b7d698201a93e0c555e99215ba5)
@@ -27,4 +27,5 @@
  */
 
+#include <stdbool.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -109,5 +110,5 @@
 	(void) argv;
 
-	while (1) {
+	while (true) {
 		int current_char_denotes_identifier;
 
Index: uspace/lib/pcut/src/report/report.c
===================================================================
--- uspace/lib/pcut/src/report/report.c	(revision a69d42e063015b31f1b430429f3a03ea17fdc9de)
+++ uspace/lib/pcut/src/report/report.c	(revision 76d0981d8dda2b7d698201a93e0c555e99215ba5)
@@ -38,4 +38,5 @@
 #include <string.h>
 #endif
+#include <stdbool.h>
 #include <stdio.h>
 
@@ -110,5 +111,5 @@
 	}
 
-	while (1) {
+	while (true) {
 		size_t message_length;
 
Index: uspace/srv/audio/hound/audio_device.c
===================================================================
--- uspace/srv/audio/hound/audio_device.c	(revision a69d42e063015b31f1b430429f3a03ea17fdc9de)
+++ uspace/srv/audio/hound/audio_device.c	(revision 76d0981d8dda2b7d698201a93e0c555e99215ba5)
@@ -40,4 +40,5 @@
 #include <inttypes.h>
 #include <loc.h>
+#include <stdbool.h>
 #include <str.h>
 #include <str_error.h>
@@ -271,5 +272,5 @@
 	audio_device_t *dev = arg;
 	assert(dev);
-	while (1) {
+	while (true) {
 		ipc_call_t call;
 		cap_call_handle_t chandle = async_get_call(&call);
Index: uspace/srv/hid/input/gsp.c
===================================================================
--- uspace/srv/hid/input/gsp.c	(revision a69d42e063015b31f1b430429f3a03ea17fdc9de)
+++ uspace/srv/hid/input/gsp.c	(revision 76d0981d8dda2b7d698201a93e0c555e99215ba5)
@@ -51,4 +51,5 @@
 #include <adt/hash_table.h>
 #include <adt/hash.h>
+#include <stdbool.h>
 #include <stdlib.h>
 #include <stdio.h>
@@ -119,5 +120,5 @@
 	dp = defs;
 
-	while (1) {
+	while (true) {
 		/* Read the output values. */
 		mods = *dp++;
