summaryrefslogtreecommitdiff
path: root/src/libsystemd/src/sd-journal/mmap-cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libsystemd/src/sd-journal/mmap-cache.c')
-rw-r--r--src/libsystemd/src/sd-journal/mmap-cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsystemd/src/sd-journal/mmap-cache.c b/src/libsystemd/src/sd-journal/mmap-cache.c
index 7f4aa78308..bda21aed05 100644
--- a/src/libsystemd/src/sd-journal/mmap-cache.c
+++ b/src/libsystemd/src/sd-journal/mmap-cache.c
@@ -482,7 +482,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)
@@ -572,7 +572,7 @@ static int add_mmap(
return 1;
outofmem:
- munmap(d, wsize);
+ (void) munmap(d, wsize);
return -ENOMEM;
}