diff options
author | June McEnroe <june@causal.agency> | 2016-10-08 01:31:07 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2016-10-08 01:31:07 -0400 |
commit | dc316acb89a3872b1d652d7d1ede1ab8a2729856 (patch) | |
tree | 55a71b27949daf55c80efae13caa9dc832980b9f | |
parent | Fix jrp OR op (diff) | |
download | src-dc316acb89a3872b1d652d7d1ede1ab8a2729856.tar.gz src-dc316acb89a3872b1d652d7d1ede1ab8a2729856.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; |