summaryrefslogtreecommitdiff
path: root/src/journal/journald.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-08-18 01:46:20 +0200
committerLennart Poettering <lennart@poettering.net>2012-08-18 01:46:20 +0200
commit84168d8068bb67dcd5468ab3b376535d81643aef (patch)
tree134286a4aedea80c2775faf54ea708dff29db330 /src/journal/journald.c
parentfb9a24b6b1ed5b1f42e6e350ccdb7e11800a83bd (diff)
mmap: resize arrays dynamically
Diffstat (limited to 'src/journal/journald.c')
-rw-r--r--src/journal/journald.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/journald.c b/src/journal/journald.c
index d431953f07..f74c46158a 100644
--- a/src/journal/journald.c
+++ b/src/journal/journald.c
@@ -2794,7 +2794,7 @@ static int server_init(Server *s) {
if (!s->user_journals)
return log_oom();
- s->mmap = mmap_cache_new(_OBJECT_TYPE_MAX, USER_JOURNALS_MAX + 2);
+ s->mmap = mmap_cache_new();
if (!s->mmap)
return log_oom();