From 594f8dd36b37b353eda520921a57d28480351bc6 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 11 Jul 1999 19:42:35 +0000 Subject: 1999-07-11 Roland McGrath * firmlink.c: Add #include . (trivfs_S_io_read): Fix sloppy bugs in last change. --- trans/firmlink.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'trans') diff --git a/trans/firmlink.c b/trans/firmlink.c index faf269f4..4c0c4533 100644 --- a/trans/firmlink.c +++ b/trans/firmlink.c @@ -25,6 +25,7 @@ #include #include #include +#include #include @@ -218,8 +219,7 @@ trivfs_S_io_read (struct trivfs_protid *cred, if (start + amount > max) amount = max - start; if (amount > *data_len) - *data = (vm_address_t) mmap (0, amount, PROT_READ|PROT_WRITE, - MAP_ANON, 0, 0); + *data = mmap (0, amount, PROT_READ|PROT_WRITE, MAP_ANON, 0, 0); err = (*data == -1) ? errno : 0; if (!err && amount > 0) { -- cgit v1.2.3