Index: uspace/srv/bd/rd/rd.c
===================================================================
--- uspace/srv/bd/rd/rd.c	(revision c1694b6b243b360b5f1fbf0629b5e7d4f7f4a515)
+++ uspace/srv/bd/rd/rd.c	(revision e211ea04fccf33d4cb2092f630a29e893e096a02)
@@ -67,10 +67,10 @@
 static const size_t block_size = 512;
 
-static int rd_open(bd_srvs_t *, bd_srv_t *);
-static int rd_close(bd_srv_t *);
-static int rd_read_blocks(bd_srv_t *, aoff64_t, size_t, void *, size_t);
-static int rd_write_blocks(bd_srv_t *, aoff64_t, size_t, const void *, size_t);
-static int rd_get_block_size(bd_srv_t *, size_t *);
-static int rd_get_num_blocks(bd_srv_t *, aoff64_t *);
+static errno_t rd_open(bd_srvs_t *, bd_srv_t *);
+static errno_t rd_close(bd_srv_t *);
+static errno_t rd_read_blocks(bd_srv_t *, aoff64_t, size_t, void *, size_t);
+static errno_t rd_write_blocks(bd_srv_t *, aoff64_t, size_t, const void *, size_t);
+static errno_t rd_get_block_size(bd_srv_t *, size_t *);
+static errno_t rd_get_num_blocks(bd_srv_t *, aoff64_t *);
 
 /** This rwlock protects the ramdisk's data.
@@ -100,5 +100,5 @@
 
 /** Open device. */
-static int rd_open(bd_srvs_t *bds, bd_srv_t *bd)
+static errno_t rd_open(bd_srvs_t *bds, bd_srv_t *bd)
 {
 	return EOK;
@@ -106,5 +106,5 @@
 
 /** Close device. */
-static int rd_close(bd_srv_t *bd)
+static errno_t rd_close(bd_srv_t *bd)
 {
 	return EOK;
@@ -112,5 +112,5 @@
 
 /** Read blocks from the device. */
-static int rd_read_blocks(bd_srv_t *bd, aoff64_t ba, size_t cnt, void *buf,
+static errno_t rd_read_blocks(bd_srv_t *bd, aoff64_t ba, size_t cnt, void *buf,
     size_t size)
 {
@@ -128,5 +128,5 @@
 
 /** Write blocks to the device. */
-static int rd_write_blocks(bd_srv_t *bd, aoff64_t ba, size_t cnt,
+static errno_t rd_write_blocks(bd_srv_t *bd, aoff64_t ba, size_t cnt,
     const void *buf, size_t size)
 {
@@ -147,5 +147,5 @@
 {
 	sysarg_t size;
-	int ret = sysinfo_get_value("rd.size", &size);
+	errno_t ret = sysinfo_get_value("rd.size", &size);
 	if ((ret != EOK) || (size == 0)) {
 		printf("%s: No RAM disk found\n", NAME);
@@ -197,5 +197,5 @@
 
 /** Get device block size. */
-static int rd_get_block_size(bd_srv_t *bd, size_t *rsize)
+static errno_t rd_get_block_size(bd_srv_t *bd, size_t *rsize)
 {
 	*rsize = block_size;
@@ -204,5 +204,5 @@
 
 /** Get number of blocks on device. */
-static int rd_get_num_blocks(bd_srv_t *bd, aoff64_t *rnb)
+static errno_t rd_get_num_blocks(bd_srv_t *bd, aoff64_t *rnb)
 {
 	*rnb = rd_size / block_size;
