[systemd-commits] src/journal
Zbigniew JÄdrzejewski-Szmek
zbyszek at kemper.freedesktop.org
Thu Aug 16 10:45:09 PDT 2012
src/journal/journal-file.c | 8 +++++---
src/journal/journal-file.h | 4 ++--
2 files changed, 7 insertions(+), 5 deletions(-)
New commits:
commit 27370278976735ea365c5169e8916b5eec6e6bdc
Author: Zbigniew JÄdrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Aug 16 19:30:36 2012 +0200
journal: rename 'mmap' to 'mmap_cache' to appease gcc
warning: declaration of 'mmap' shadows a global declaration [-Wshadow]
diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c
index efa0910..e0b20cc 100644
--- a/src/journal/journal-file.c
+++ b/src/journal/journal-file.c
@@ -2134,7 +2134,7 @@ int journal_file_open_reliably(
bool compress,
bool authenticate,
JournalMetrics *metrics,
- MMapCache *mmap,
+ MMapCache *mmap_cache,
JournalFile *template,
JournalFile **ret) {
@@ -2142,7 +2142,8 @@ int journal_file_open_reliably(
size_t l;
char *p;
- r = journal_file_open(fname, flags, mode, compress, authenticate, metrics, mmap, template, ret);
+ r = journal_file_open(fname, flags, mode, compress, authenticate,
+ metrics, mmap_cache, template, ret);
if (r != -EBADMSG && /* corrupted */
r != -ENODATA && /* truncated */
r != -EHOSTDOWN && /* other machine */
@@ -2176,7 +2177,8 @@ int journal_file_open_reliably(
log_warning("File %s corrupted or uncleanly shut down, renaming and replacing.", fname);
- return journal_file_open(fname, flags, mode, compress, authenticate, metrics, mmap, template, ret);
+ return journal_file_open(fname, flags, mode, compress, authenticate,
+ metrics, mmap_cache, template, ret);
}
diff --git a/src/journal/journal-file.h b/src/journal/journal-file.h
index aba3d9a..1da1d3b 100644
--- a/src/journal/journal-file.h
+++ b/src/journal/journal-file.h
@@ -90,7 +90,7 @@ int journal_file_open(
bool compress,
bool authenticate,
JournalMetrics *metrics,
- MMapCache *mmap,
+ MMapCache *mmap_cache,
JournalFile *template,
JournalFile **ret);
@@ -103,7 +103,7 @@ int journal_file_open_reliably(
bool compress,
bool authenticate,
JournalMetrics *metrics,
- MMapCache *mmap,
+ MMapCache *mmap_cache,
JournalFile *template,
JournalFile **ret);
More information about the systemd-commits
mailing list