summaryrefslogtreecommitdiff
path: root/src/libsystemd/sd-bus/bus-kernel.c
diff options
context:
space:
mode:
authorDaniel Mack <zonque@gmail.com>2014-08-18 12:24:04 +0200
committerDaniel Mack <zonque@gmail.com>2014-08-18 12:37:22 +0200
commit4632777024b7ba210e4efe5cfabc8cd0b5991045 (patch)
tree363c6464d7affbfa8809e7105cc50b593dcdfa65 /src/libsystemd/sd-bus/bus-kernel.c
parent43bde981ccc57c744f164a9d95d46c7ce8f21808 (diff)
memfd: fix memfd_create() syscall wrapper
Unlike earlier versions, the syscall only takes 2 arguments in its final version, not 3.
Diffstat (limited to 'src/libsystemd/sd-bus/bus-kernel.c')
-rw-r--r--src/libsystemd/sd-bus/bus-kernel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-bus/bus-kernel.c b/src/libsystemd/sd-bus/bus-kernel.c
index 4156b90265..d384f846b9 100644
--- a/src/libsystemd/sd-bus/bus-kernel.c
+++ b/src/libsystemd/sd-bus/bus-kernel.c
@@ -1121,7 +1121,7 @@ int bus_kernel_pop_memfd(sd_bus *bus, void **address, size_t *mapped, size_t *al
if (!g)
return -ENOMEM;
- r = memfd_create(g, 0, MFD_ALLOW_SEALING);
+ r = memfd_create(g, MFD_ALLOW_SEALING);
if (r < 0)
return -errno;