summaryrefslogtreecommitdiff
path: root/trans/firmlink.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1999-07-11 19:42:35 +0000
committerRoland McGrath <roland@gnu.org>1999-07-11 19:42:35 +0000
commit594f8dd36b37b353eda520921a57d28480351bc6 (patch)
treef8def09df07567d89f08a6cb47ab31d15acc9ca0 /trans/firmlink.c
parent48955a50a3771beb92e0c7939504b8e44162ecd3 (diff)
1999-07-11 Roland McGrath <roland@baalperazim.frob.com>
* firmlink.c: Add #include <sys/mman.h>. (trivfs_S_io_read): Fix sloppy bugs in last change.
Diffstat (limited to 'trans/firmlink.c')
-rw-r--r--trans/firmlink.c4
1 files changed, 2 insertions, 2 deletions
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 <fcntl.h>
#include <argp.h>
#include <error.h>
+#include <sys/mman.h>
#include <hurd/trivfs.h>
@@ -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)
{