summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/memfd.c2
-rw-r--r--src/shared/missing.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/shared/memfd.c b/src/shared/memfd.c
index 4dd70a2473..dcebfc9d6f 100644
--- a/src/shared/memfd.c
+++ b/src/shared/memfd.c
@@ -90,7 +90,7 @@ int sd_memfd_new(sd_memfd **m, const char *name) {
if (!n)
return -ENOMEM;
- n->fd = memfd_create(name, 0, MFD_ALLOW_SEALING);
+ n->fd = memfd_create(name, MFD_ALLOW_SEALING);
if (n->fd < 0) {
free(n);
return -errno;
diff --git a/src/shared/missing.h b/src/shared/missing.h
index 3a7e67e384..3ff1a21720 100644
--- a/src/shared/missing.h
+++ b/src/shared/missing.h
@@ -205,8 +205,8 @@ static inline int fanotify_mark(int fanotify_fd, unsigned int flags, uint64_t ma
#endif
#ifndef HAVE_MEMFD_CREATE
-static inline int memfd_create(const char *name, uint64_t size, uint64_t flags) {
- return syscall(__NR_memfd_create, name, size, flags);
+static inline int memfd_create(const char *name, uint64_t flags) {
+ return syscall(__NR_memfd_create, name, flags);
}
#endif