chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
journal-remote: implement inheriting http(s) sockets
[elogind.git]
/
src
/
journal
/
test-mmap-cache.c
diff --git
a/src/journal/test-mmap-cache.c
b/src/journal/test-mmap-cache.c
index e2ffaf4723b290eaa99dd15dbb731e38974c86a0..7d03bfe9d15525cada49d31fd005c612d3f92d88 100644
(file)
--- a/
src/journal/test-mmap-cache.c
+++ b/
src/journal/test-mmap-cache.c
@@
-22,6
+22,7
@@
#include <stdlib.h>
#include <sys/mman.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/mman.h>
#include <unistd.h>
+#include <fcntl.h>
#include "log.h"
#include "macro.h"
#include "log.h"
#include "macro.h"
@@
-36,15
+37,15
@@
int main(int argc, char *argv[]) {
assert_se(m = mmap_cache_new());
assert_se(m = mmap_cache_new());
- x = mk
stemp(px
);
+ x = mk
ostemp_safe(px, O_RDWR|O_CLOEXEC
);
assert(x >= 0);
unlink(px);
assert(x >= 0);
unlink(px);
- y = mk
stemp(py
);
+ y = mk
ostemp_safe(py, O_RDWR|O_CLOEXEC
);
assert(y >= 0);
unlink(py);
assert(y >= 0);
unlink(py);
- z = mk
stemp(pz
);
+ z = mk
ostemp_safe(pz, O_RDWR|O_CLOEXEC
);
assert(z >= 0);
unlink(pz);
assert(z >= 0);
unlink(pz);