Index: uspace/lib/gui/window.c
===================================================================
--- uspace/lib/gui/window.c	(revision 38d150e6238ab44c861f6486e46454e07caeb0f0)
+++ uspace/lib/gui/window.c	(revision 0247bd24eab20736d9bd6ad605a5fffbf6d4fc4c)
@@ -163,5 +163,5 @@
 	
 	font_t *font;
-	int rc = embedded_font_create(&font, 16);
+	errno_t rc = embedded_font_create(&font, 16);
 	if (rc != EOK) {
 		window_yield(widget->window);
@@ -404,5 +404,5 @@
 	
 	/* Inform compositor about new surface. */
-	int rc = win_resize(win->osess, offset_x, offset_y, width, height,
+	errno_t rc = win_resize(win->osess, offset_x, offset_y, width, height,
 	    placement_flags, surface_direct_access(new_surface));
 	
@@ -493,5 +493,5 @@
 
 /* Window event loop. Runs in own dedicated fibril. */
-static int event_loop(void *arg)
+static errno_t event_loop(void *arg)
 {
 	bool is_main = false;
@@ -561,7 +561,7 @@
 
 /* Input fetcher from compositor. Runs in own dedicated fibril. */
-static int fetch_input(void *arg)
-{
-	int rc;
+static errno_t fetch_input(void *arg)
+{
+	errno_t rc;
 	bool terminate = false;
 	window_t *win = (window_t *) arg;
@@ -618,5 +618,5 @@
 	
 	service_id_t reg_dsid;
-	int rc = loc_service_get_id(winreg, &reg_dsid, 0);
+	errno_t rc = loc_service_get_id(winreg, &reg_dsid, 0);
 	if (rc != EOK) {
 		free(win);
@@ -677,5 +677,5 @@
 }
 
-int window_set_caption(window_t *win, const char *caption)
+errno_t window_set_caption(window_t *win, const char *caption)
 {
 	char *cap;
