diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-06-29 10:18:44 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-06-29 10:18:44 +0200 |
commit | e96e9584f2ca6797552fc46bb83e3d10827fad49 (patch) | |
tree | 2690a245a593114276918b6226bead748ceb8fcd /src/util | |
parent | 3ddd3e7aaa16e086136f64881bc9d403b87a61ec (diff) | |
download | gnunet-e96e9584f2ca6797552fc46bb83e3d10827fad49.tar.gz gnunet-e96e9584f2ca6797552fc46bb83e3d10827fad49.zip |
use mmap() instead of malloc, rename heap->flat as database is persisted in flat file
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/disk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/disk.c b/src/util/disk.c index 4f78c7747..f395a375e 100644 --- a/src/util/disk.c +++ b/src/util/disk.c | |||
@@ -2021,7 +2021,7 @@ GNUNET_DISK_file_map (const struct GNUNET_DISK_FileHandle *h, | |||
2021 | struct GNUNET_DISK_MapHandle **m, | 2021 | struct GNUNET_DISK_MapHandle **m, |
2022 | enum GNUNET_DISK_MapType access, size_t len) | 2022 | enum GNUNET_DISK_MapType access, size_t len) |
2023 | { | 2023 | { |
2024 | if (h == NULL) | 2024 | if (NULL == h) |
2025 | { | 2025 | { |
2026 | errno = EINVAL; | 2026 | errno = EINVAL; |
2027 | return NULL; | 2027 | return NULL; |