summaryrefslogtreecommitdiff
path: root/trans/firmlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'trans/firmlink.c')
-rw-r--r--trans/firmlink.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/trans/firmlink.c b/trans/firmlink.c
index 4c0c4533..d38f4dc8 100644
--- a/trans/firmlink.c
+++ b/trans/firmlink.c
@@ -219,7 +219,8 @@ trivfs_S_io_read (struct trivfs_protid *cred,
if (start + amount > max)
amount = max - start;
if (amount > *data_len)
- *data = mmap (0, amount, PROT_READ|PROT_WRITE, MAP_ANON, 0, 0);
+ *data = (vm_address_t) mmap (0, amount, PROT_READ|PROT_WRITE,
+ MAP_ANON, 0, 0);
err = (*data == -1) ? errno : 0;
if (!err && amount > 0)
{