]> git.tuebingen.mpg.de Git - adu.git/commitdiff
Simplify and rename mmap_full_file().
authorAndre Noll <maan@tuebingen.mpg.de>
Sun, 15 Feb 2015 15:42:05 +0000 (16:42 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 15 Feb 2015 15:45:32 +0000 (16:45 +0100)
There is only one caller which maps the file privately into read-only
memory. Moreover, this caller does not care about the file descriptor
from which the mapping was created.

This commit removes the argument from mmap_full_file() which control
the type of the map and the result pointer for the file descriptor,
thereby simplifying the function slightly. Rename it to mmap_file_ro()
to indicate that read-only private mappings are implied.


No differences found