Index: uspace/drv/char/sun4v-con/sun4v-con.c
===================================================================
--- uspace/drv/char/sun4v-con/sun4v-con.c	(revision dd8ab1cacb307cb1ac01aa4918c789d13e112e56)
+++ uspace/drv/char/sun4v-con/sun4v-con.c	(revision 3b60ea0ab63232b82cbb39069c74d417545a98e6)
@@ -46,6 +46,6 @@
 #define POLL_INTERVAL  10000
 
-static int sun4v_con_read(chardev_srv_t *, void *, size_t, size_t *);
-static int sun4v_con_write(chardev_srv_t *, const void *, size_t, size_t *);
+static errno_t sun4v_con_read(chardev_srv_t *, void *, size_t, size_t *);
+static errno_t sun4v_con_write(chardev_srv_t *, const void *, size_t, size_t *);
 
 static chardev_ops_t sun4v_con_chardev_ops = {
@@ -69,8 +69,8 @@
 
 /** Add sun4v console device. */
-int sun4v_con_add(sun4v_con_t *con, sun4v_con_res_t *res)
+errno_t sun4v_con_add(sun4v_con_t *con, sun4v_con_res_t *res)
 {
 	ddf_fun_t *fun = NULL;
-	int rc;
+	errno_t rc;
 
 	con->res = *res;
@@ -129,5 +129,5 @@
 
 /** Remove sun4v console device */
-int sun4v_con_remove(sun4v_con_t *con)
+errno_t sun4v_con_remove(sun4v_con_t *con)
 {
 	return ENOTSUP;
@@ -135,5 +135,5 @@
 
 /** Msim console device gone */
-int sun4v_con_gone(sun4v_con_t *con)
+errno_t sun4v_con_gone(sun4v_con_t *con)
 {
 	return ENOTSUP;
@@ -141,5 +141,5 @@
 
 /** Read from Sun4v console device */
-static int sun4v_con_read(chardev_srv_t *srv, void *buf, size_t size,
+static errno_t sun4v_con_read(chardev_srv_t *srv, void *buf, size_t size,
     size_t *nread)
 {
@@ -165,5 +165,5 @@
 
 /** Write to Sun4v console device */
-static int sun4v_con_write(chardev_srv_t *srv, const void *data, size_t size,
+static errno_t sun4v_con_write(chardev_srv_t *srv, const void *data, size_t size,
     size_t *nwr)
 {
