summaryrefslogtreecommitdiff
path: root/src/journal
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-06-21 13:20:02 +0200
committerLennart Poettering <lennart@poettering.net>2016-06-21 14:15:23 +0200
commit3f0083a264952dc79f3ae478044b79b66ed03c46 (patch)
tree7c64efb88a7f0d656da28b59fe8e900355090bff /src/journal
parentb541146bf8c34aaaa9efcf58325f18da9253c4ec (diff)
tree-wide: some work-arounds for gcc false positives regarding uninitialized variables
Diffstat (limited to 'src/journal')
-rw-r--r--src/journal/mmap-cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/journal/mmap-cache.c b/src/journal/mmap-cache.c
index 6bcd9b6ac8..293d27053a 100644
--- a/src/journal/mmap-cache.c
+++ b/src/journal/mmap-cache.c
@@ -481,7 +481,7 @@ static int mmap_try_harder(MMapCache *m, void *addr, int fd, int prot, int flags
if (ptr != MAP_FAILED)
break;
if (errno != ENOMEM)
- return -errno;
+ return negative_errno();
r = make_room(m);
if (r < 0)
@@ -571,7 +571,7 @@ static int add_mmap(
return 1;
outofmem:
- munmap(d, wsize);
+ (void) munmap(d, wsize);
return -ENOMEM;
}