diff options
author | June McEnroe <programble@gmail.com> | 2016-10-08 01:31:07 -0400 |
---|---|---|
committer | June McEnroe <programble@gmail.com> | 2016-10-08 01:31:07 -0400 |
commit | 02c390b3f3e87988145ed3d6fd5c0fb806271073 (patch) | |
tree | 4c657a3563d4327ece0c33a1f627037065c693d4 | |
parent | Fix jrp OR op (diff) | |
download | src-02c390b3f3e87988145ed3d6fd5c0fb806271073.tar.gz src-02c390b3f3e87988145ed3d6fd5c0fb806271073.zip |
Fix jrp mmap MAP_ANON calls
-rwxr-xr-x | .bin/jrp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.bin/jrp.c b/.bin/jrp.c index 7fffe83f..c156942b 100755 --- a/.bin/jrp.c +++ b/.bin/jrp.c @@ -188,10 +188,10 @@ static char *prompt(EditLine *el __attribute((unused))) { int main(int argc, char *argv[]) { page = getpagesize(); - code.base = mmap(0, page, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, 0, 0); + code.base = mmap(0, page, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0); if (code.base == MAP_FAILED) err(EX_OSERR, "mmap"); - stack.base = mmap(0, page, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, 0, 0); + stack.base = mmap(0, page, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0); if (stack.base == MAP_FAILED) err(EX_OSERR, "mmap"); stack.limit = stack.base + page / sizeof(value); stack.ptr = stack.limit - 1; |