From a039aca860f7d2b602230349b342df6d309c7343 Mon Sep 17 00:00:00 2001 From: Eric Fischer Date: Tue, 4 Nov 2014 10:08:30 -0800 Subject: [PATCH] Read-only memory map for merging, since there's no reason to write --- geojson.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geojson.c b/geojson.c index 0f2b866d..d596f0a6 100644 --- a/geojson.c +++ b/geojson.c @@ -587,7 +587,7 @@ next_feature: fprintf(stderr, "\n"); } - void *map = mmap(NULL, indexst.st_size, PROT_READ | PROT_WRITE, MAP_PRIVATE, indexfd, 0); + void *map = mmap(NULL, indexst.st_size, PROT_READ, MAP_PRIVATE, indexfd, 0); if (map == MAP_FAILED) { perror("mmap"); exit(EXIT_FAILURE);