]> git.tuebingen.mpg.de Git - adu.git/blobdiff - user.c
manual: Add two more examples.
[adu.git] / user.c
diff --git a/user.c b/user.c
index a1513a4cd6ffbc6f96ab7d1573c2cc210a7c7703..ed16463afed9372426c5c08284a65ec863a19e2e 100644 (file)
--- a/user.c
+++ b/user.c
@@ -511,7 +511,7 @@ int read_uid_file(void)
        size_t size;
        uint32_t n;
        char *filename = get_uid_list_name(), *map;
-       int ret = mmap_full_file(filename, O_RDONLY, (void **)&map, &size, NULL);
+       int ret = mmap_file_ro(filename, (void **)&map, &size);
        unsigned bits;
 
        if (ret < 0) {