Index: uspace/lib/usbhost/src/hcd.c
===================================================================
--- uspace/lib/usbhost/src/hcd.c	(revision 68e540652e175b4bfb5504f9363d31c97d4c5a17)
+++ uspace/lib/usbhost/src/hcd.c	(revision a53ed3a8097360ccf174e8d94fb407db919eb66a)
@@ -49,5 +49,5 @@
  * @return Error code.
  */
-static int register_helper(endpoint_t *ep, void *arg)
+static errno_t register_helper(endpoint_t *ep, void *arg)
 {
 	hcd_t *hcd = arg;
@@ -102,5 +102,5 @@
 }
 
-int hcd_request_address(hcd_t *hcd, usb_speed_t speed, usb_address_t *address)
+errno_t hcd_request_address(hcd_t *hcd, usb_speed_t speed, usb_address_t *address)
 {
 	assert(hcd);
@@ -108,5 +108,5 @@
 }
 
-int hcd_release_address(hcd_t *hcd, usb_address_t address)
+errno_t hcd_release_address(hcd_t *hcd, usb_address_t address)
 {
 	assert(hcd);
@@ -115,5 +115,5 @@
 }
 
-int hcd_reserve_default_address(hcd_t *hcd, usb_speed_t speed)
+errno_t hcd_reserve_default_address(hcd_t *hcd, usb_speed_t speed)
 {
 	assert(hcd);
@@ -122,5 +122,5 @@
 }
 
-int hcd_add_ep(hcd_t *hcd, usb_target_t target, usb_direction_t dir,
+errno_t hcd_add_ep(hcd_t *hcd, usb_target_t target, usb_direction_t dir,
     usb_transfer_type_t type, size_t max_packet_size, unsigned packets,
     size_t size, usb_address_t tt_address, unsigned tt_port)
@@ -132,5 +132,5 @@
 }
 
-int hcd_remove_ep(hcd_t *hcd, usb_target_t target, usb_direction_t dir)
+errno_t hcd_remove_ep(hcd_t *hcd, usb_target_t target, usb_direction_t dir)
 {
 	assert(hcd);
@@ -147,5 +147,5 @@
 } toggle_t;
 
-static void toggle_reset_callback(int retval, void *arg)
+static void toggle_reset_callback(errno_t retval, void *arg)
 {
 	assert(arg);
@@ -172,5 +172,5 @@
  * @return Error code.
  */
-int hcd_send_batch(
+errno_t hcd_send_batch(
     hcd_t *hcd, usb_target_t target, usb_direction_t direction,
     void *data, size_t size, uint64_t setup_data,
@@ -232,5 +232,5 @@
 	}
 
-	const int ret = hcd->ops.schedule(hcd, batch);
+	const errno_t ret = hcd->ops.schedule(hcd, batch);
 	if (ret != EOK)
 		usb_transfer_batch_destroy(batch);
@@ -244,9 +244,9 @@
 typedef struct {
 	volatile unsigned done;
-	int ret;
+	errno_t ret;
 	size_t size;
 } sync_data_t;
 
-static void transfer_in_cb(int ret, size_t size, void* data)
+static void transfer_in_cb(errno_t ret, size_t size, void* data)
 {
 	sync_data_t *d = data;
@@ -257,5 +257,5 @@
 }
 
-static void transfer_out_cb(int ret, void* data)
+static void transfer_out_cb(errno_t ret, void* data)
 {
 	sync_data_t *d = data;
@@ -266,5 +266,5 @@
 
 /** this is really ugly version of sync usb communication */
-int hcd_send_batch_sync(
+errno_t hcd_send_batch_sync(
     hcd_t *hcd, usb_target_t target, usb_direction_t dir,
     void *data, size_t size, uint64_t setup_data, const char* name, size_t *out_size)
@@ -273,5 +273,5 @@
 	sync_data_t sd = { .done = 0, .ret = EBUSY, .size = size };
 
-	const int ret = hcd_send_batch(hcd, target, dir, data, size, setup_data,
+	const errno_t ret = hcd_send_batch(hcd, target, dir, data, size, setup_data,
 	    dir == USB_DIRECTION_IN ? transfer_in_cb : NULL,
 	    dir == USB_DIRECTION_OUT ? transfer_out_cb : NULL, &sd, name);
