Index: uspace/lib/libblock/libblock.c
===================================================================
--- uspace/lib/libblock/libblock.c	(revision 953769ff5f13f913fbf03e6f1b8aac2f414094f6)
+++ 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 953769ff5f13f913fbf03e6f1b8aac2f414094f6)
+++ 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;
 	}
