aboutsummaryrefslogtreecommitdiff
path: root/catgets/open_catalog.c
diff options
context:
space:
mode:
Diffstat (limited to 'catgets/open_catalog.c')
-rw-r--r--catgets/open_catalog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/catgets/open_catalog.c b/catgets/open_catalog.c
index 5335b433c7..80d2899a36 100644
--- a/catgets/open_catalog.c
+++ b/catgets/open_catalog.c
@@ -185,7 +185,7 @@ __open_catalog (__nl_catd catalog, int with_path)
MAP_FILE|MAP_COPY|MAP_INHERIT, fd, 0);
if (catalog->file_ptr != (struct catalog_obj *) -1)
/* Tell the world we managed to mmap the file. */
- catalog->status = mmaped;
+ catalog->status = mmapped;
else
{
/* mmap failed perhaps because the system call is not
@@ -229,7 +229,7 @@ __open_catalog (__nl_catd catalog, int with_path)
{
/* Illegal file. Free he resources and mark catalog as not
usable. */
- if (catalog->status == mmaped)
+ if (catalog->status == mmapped)
__munmap ((void *) catalog->file_ptr, catalog->file_size);
else
free (catalog->file_ptr);