Index: uspace/app/tester/mm/common.c
===================================================================
--- uspace/app/tester/mm/common.c	(revision df138361db097bfad037b09eb2abbae6e0931ac3)
+++ uspace/app/tester/mm/common.c	(revision be12474ead2cb098f28d8b1a42e46e304254fcde)
@@ -309,5 +309,5 @@
 		return NULL;
 	
-	unsigned int idx = rand() % mem_blocks_count;
+	unsigned long idx = rand() % mem_blocks_count;
 	link_t *entry = list_nth(&mem_blocks, idx);
 	
Index: uspace/lib/c/generic/devman.c
===================================================================
--- uspace/lib/c/generic/devman.c	(revision df138361db097bfad037b09eb2abbae6e0931ac3)
+++ uspace/lib/c/generic/devman.c	(revision be12474ead2cb098f28d8b1a42e46e304254fcde)
@@ -217,5 +217,5 @@
     match_id_list_t *match_ids, devman_handle_t devh, devman_handle_t *funh)
 {
-	int match_count = list_count(&match_ids->ids);
+	unsigned long match_count = list_count(&match_ids->ids);
 	async_exch_t *exch = devman_exchange_begin_blocking(INTERFACE_DDF_DRIVER);
 	
Index: uspace/srv/audio/hound/hound.c
===================================================================
--- uspace/srv/audio/hound/hound.c	(revision df138361db097bfad037b09eb2abbae6e0931ac3)
+++ uspace/srv/audio/hound/hound.c	(revision be12474ead2cb098f28d8b1a42e46e304254fcde)
@@ -420,5 +420,5 @@
 
 	fibril_mutex_lock(&hound->list_guard);
-	const size_t count = list_count(&hound->sources);
+	const unsigned long count = list_count(&hound->sources);
 	if (count == 0) {
 		*list = NULL;
@@ -429,5 +429,5 @@
 	const char **names = calloc(count, sizeof(char *));
 	int ret = names ? EOK : ENOMEM;
-	for (size_t i = 0; i < count && ret == EOK; ++i) {
+	for (unsigned long i = 0; i < count && ret == EOK; ++i) {
 		link_t *slink = list_nth(&hound->sources, i);
 		audio_source_t *source = audio_source_list_instance(slink);
Index: uspace/srv/net/tcp/service.c
===================================================================
--- uspace/srv/net/tcp/service.c	(revision df138361db097bfad037b09eb2abbae6e0931ac3)
+++ uspace/srv/net/tcp/service.c	(revision be12474ead2cb098f28d8b1a42e46e304254fcde)
@@ -1132,5 +1132,5 @@
 {
 	tcp_cconn_t *cconn;
-	size_t n;
+	unsigned long n;
 
 	n = list_count(&client->cconn);
Index: uspace/srv/net/udp/service.c
===================================================================
--- uspace/srv/net/udp/service.c	(revision df138361db097bfad037b09eb2abbae6e0931ac3)
+++ uspace/srv/net/udp/service.c	(revision be12474ead2cb098f28d8b1a42e46e304254fcde)
@@ -627,5 +627,5 @@
 {
 	udp_client_t client;
-	size_t n;
+	unsigned long n;
 
 	/* Accept the connection */
