Index: uspace/app/init/init.c
===================================================================
--- uspace/app/init/init.c	(revision 04717864998bfc373f375b3f00bd2cf8e3c153c1)
+++ uspace/app/init/init.c	(revision 62140db53b75a953d42ed31acb77916cfc0ee678)
@@ -129,4 +129,5 @@
 	char *argv[4];
 	char vc[MAX_DEVICE_NAME];
+	int rc;
 	
 	snprintf(vc, MAX_DEVICE_NAME, "/dev/%s", dev);
@@ -135,7 +136,7 @@
 	
 	dev_handle_t handle;
-	devmap_device_get_handle(dev, &handle, IPC_FLAG_BLOCKING);
+	rc = devmap_device_get_handle(dev, &handle, IPC_FLAG_BLOCKING);
 	
-	if (handle >= 0) {
+	if (rc == EOK) {
 		argv[0] = "/app/getvc";
 		argv[1] = vc;
@@ -145,6 +146,7 @@
 		if (!task_spawn("/app/getvc", argv))
 			printf(NAME ": Error spawning getvc on %s\n", vc);
-	} else
+	} else {
 		printf(NAME ": Error waiting on %s\n", vc);
+	}
 }
 
@@ -161,5 +163,5 @@
 	
 	if (!mount_devfs()) {
-		return(NAME ": Exiting\n");
+		printf(NAME ": Exiting\n");
 		return -2;
 	}
Index: uspace/app/tester/stdio/stdio2.c
===================================================================
--- uspace/app/tester/stdio/stdio2.c	(revision 04717864998bfc373f375b3f00bd2cf8e3c153c1)
+++ uspace/app/tester/stdio/stdio2.c	(revision 62140db53b75a953d42ed31acb77916cfc0ee678)
@@ -36,5 +36,4 @@
 	FILE *f;
 	char *file_name = "/test";
-	size_t n;
 	int c;
 
Index: uspace/lib/libblock/libblock.c
===================================================================
--- uspace/lib/libblock/libblock.c	(revision 04717864998bfc373f375b3f00bd2cf8e3c153c1)
+++ uspace/lib/libblock/libblock.c	(revision 62140db53b75a953d42ed31acb77916cfc0ee678)
@@ -475,5 +475,5 @@
 		}
 		
-		if (*bufpos == *buflen) {
+		if (*bufpos == (off_t) *buflen) {
 			/* Refill the communication buffer with a new block. */
 			ipcarg_t retval;
@@ -481,5 +481,5 @@
 			    *pos / block_size, block_size, &retval);
 			if ((rc != EOK) || (retval != EOK))
-				return (rc != EOK ? rc : retval);
+				return (rc != EOK ? rc : (int) retval);
 			
 			*bufpos = 0;
Index: uspace/lib/libc/generic/devmap.c
===================================================================
--- uspace/lib/libc/generic/devmap.c	(revision 04717864998bfc373f375b3f00bd2cf8e3c153c1)
+++ uspace/lib/libc/generic/devmap.c	(revision 62140db53b75a953d42ed31acb77916cfc0ee678)
@@ -194,5 +194,5 @@
 	if (retval != EOK) {
 		if (handle != NULL)
-			*handle = -1;
+			*handle = (dev_handle_t) -1;
 		return retval;
 	}
Index: uspace/srv/fb/ppm.c
===================================================================
--- uspace/srv/fb/ppm.c	(revision 04717864998bfc373f375b3f00bd2cf8e3c153c1)
+++ uspace/srv/fb/ppm.c	(revision 62140db53b75a953d42ed31acb77916cfc0ee678)
@@ -90,5 +90,5 @@
 	unsigned int width, height;
 	unsigned int maxcolor;
-	int i;
+	unsigned i;
 	unsigned int color;
 	unsigned int coef;
