diff options
author | Roland McGrath <roland@gnu.org> | 1999-07-11 19:40:09 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1999-07-11 19:40:09 +0000 |
commit | 7a2f8bbb83cd8b90c029e5c9bb031a45136ecd7b (patch) | |
tree | 63ec23c8f5c25cc332a3481a170c30171184b44e | |
parent | aa8a9f275499a6e59b592a71528295a7ef46d60f (diff) |
1999-07-11 Roland McGrath <roland@baalperazim.frob.com>
* exec.c (load_section): Fix typos in last change.
-rw-r--r-- | exec/exec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/exec/exec.c b/exec/exec.c index d70083a3..ef6c2b69 100644 --- a/exec/exec.c +++ b/exec/exec.c @@ -224,7 +224,7 @@ load_section (void *section, struct execdata *u) if (! u->error && off != 0) { vm_address_t page = 0; - page = (vm_address_t) mmap (0, vm_page_size, + page = (vm_address_t) mmap (0, vm_page_size, PROT_READ|PROT_WRITE, MAP_ANON, 0, 0); u->error = (page == -1) ? errno : 0; @@ -325,6 +325,7 @@ load_section (void *section, struct execdata *u) PROT_READ|PROT_WRITE, MAP_ANON, 0, 0); u->error = (ourpage == -1) ? errno : 0; + } } if (u->error) { |