Index: uspace/srv/fb/ega.c
===================================================================
--- uspace/srv/fb/ega.c	(revision 08c9f7d5cc380c8c348f1125ecf5135ef7e5fb1a)
+++ uspace/srv/fb/ega.c	(revision 04717864998bfc373f375b3f00bd2cf8e3c153c1)
@@ -88,5 +88,5 @@
 static void clrscr(void)
 {
-	int i;
+	unsigned i;
 	
 	for (i = 0; i < scr_width * scr_height; i++) {
@@ -130,5 +130,6 @@
 static void scroll(int rows)
 {
-	int i;
+	unsigned i;
+
 	if (rows > 0) {
 		memmove(scr_addr, ((char *) scr_addr) + rows * scr_width * 2,
@@ -346,5 +347,5 @@
 		case FB_SCROLL:
 			i = IPC_GET_ARG1(call);
-			if (i > scr_height || i < -((int) scr_height)) {
+			if (i > (int) scr_height || i < -((int) scr_height)) {
 				retval = EINVAL;
 				break;
Index: uspace/srv/fb/fb.c
===================================================================
--- uspace/srv/fb/fb.c	(revision 08c9f7d5cc380c8c348f1125ecf5135ef7e5fb1a)
+++ uspace/srv/fb/fb.c	(revision 04717864998bfc373f375b3f00bd2cf8e3c153c1)
@@ -451,5 +451,6 @@
 		x = vport->x;
 		for (col = 0; col < vport->cols; col++) {
-			if ((row + lines >= 0) && (row + lines < vport->rows)) {
+			if (((int) row + lines >= 0) &&
+			    ((int) row + lines < (int) vport->rows)) {
 				xbp = &vport->backbuf[BB_POS(vport, col, row + lines)];
 				bbp = &vport->backbuf[BB_POS(vport, col, row)];
