Index: uspace/lib/c/generic/io/window.c
===================================================================
--- uspace/lib/c/generic/io/window.c	(revision 25a179efc4ecca45aa90793992b6c1c2743fd07f)
+++ uspace/lib/c/generic/io/window.c	(revision 2ca5a198f7308b0c892b04c0fcda44f5e83eb8f0)
@@ -40,9 +40,9 @@
 #include <stdio.h>
 
-int win_register(async_sess_t *sess, window_flags_t flags, service_id_t *in,
+errno_t win_register(async_sess_t *sess, window_flags_t flags, service_id_t *in,
     service_id_t *out)
 {
 	async_exch_t *exch = async_exchange_begin(sess);
-	int ret = async_req_1_2(exch, WINDOW_REGISTER, flags, in, out);
+	errno_t ret = async_req_1_2(exch, WINDOW_REGISTER, flags, in, out);
 	async_exchange_end(exch);
 	
@@ -50,5 +50,5 @@
 }
 
-int win_get_event(async_sess_t *sess, window_event_t *event)
+errno_t win_get_event(async_sess_t *sess, window_event_t *event)
 {
 	async_exch_t *exch = async_exchange_begin(sess);
@@ -57,9 +57,9 @@
 	aid_t req = async_send_0(exch, WINDOW_GET_EVENT, &answer);
 
-	int rc = async_data_read_start(exch, event, sizeof(window_event_t));
+	errno_t rc = async_data_read_start(exch, event, sizeof(window_event_t));
 
 	async_exchange_end(exch);
 
-	int ret;
+	errno_t ret;
 	async_wait_for(req, &ret);
 
@@ -73,9 +73,9 @@
 }
 
-int win_damage(async_sess_t *sess,
+errno_t win_damage(async_sess_t *sess,
     sysarg_t x, sysarg_t y, sysarg_t width, sysarg_t height)
 {
 	async_exch_t *exch = async_exchange_begin(sess);
-	int ret = async_req_4_0(exch, WINDOW_DAMAGE, x, y, width, height);
+	errno_t ret = async_req_4_0(exch, WINDOW_DAMAGE, x, y, width, height);
 	async_exchange_end(exch);
 
@@ -83,8 +83,8 @@
 }
 
-int win_grab(async_sess_t *sess, sysarg_t pos_id, sysarg_t grab_flags)
+errno_t win_grab(async_sess_t *sess, sysarg_t pos_id, sysarg_t grab_flags)
 {
 	async_exch_t *exch = async_exchange_begin(sess);
-	int ret = async_req_2_0(exch, WINDOW_GRAB, pos_id, grab_flags);
+	errno_t ret = async_req_2_0(exch, WINDOW_GRAB, pos_id, grab_flags);
 	async_exchange_end(exch);
 
@@ -92,5 +92,5 @@
 }
 
-int win_resize(async_sess_t *sess, sysarg_t x, sysarg_t y, sysarg_t width,
+errno_t win_resize(async_sess_t *sess, sysarg_t x, sysarg_t y, sysarg_t width,
     sysarg_t height, window_placement_flags_t placement_flags, void *cells)
 {
@@ -101,9 +101,9 @@
 	    (sysarg_t) placement_flags, &answer);
 	
-	int rc = async_share_out_start(exch, cells, AS_AREA_READ | AS_AREA_CACHEABLE);
+	errno_t rc = async_share_out_start(exch, cells, AS_AREA_READ | AS_AREA_CACHEABLE);
 	
 	async_exchange_end(exch);
 	
-	int ret;
+	errno_t ret;
 	async_wait_for(req, &ret);
 	
@@ -116,8 +116,8 @@
 }
 
-int win_close(async_sess_t *sess)
+errno_t win_close(async_sess_t *sess)
 {
 	async_exch_t *exch = async_exchange_begin(sess);
-	int ret = async_req_0_0(exch, WINDOW_CLOSE);
+	errno_t ret = async_req_0_0(exch, WINDOW_CLOSE);
 	async_exchange_end(exch);
 
@@ -125,8 +125,8 @@
 }
 
-int win_close_request(async_sess_t *sess)
+errno_t win_close_request(async_sess_t *sess)
 {
 	async_exch_t *exch = async_exchange_begin(sess);
-	int ret = async_req_0_0(exch, WINDOW_CLOSE_REQUEST);
+	errno_t ret = async_req_0_0(exch, WINDOW_CLOSE_REQUEST);
 	async_exchange_end(exch);
 
