summaryrefslogtreecommitdiff
path: root/src/libsystemd/sd-bus/test-bus-zero-copy.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-01-22 13:06:04 +0100
committerLennart Poettering <lennart@poettering.net>2014-01-22 13:06:04 +0100
commit7f96b1d8147b164bc7c8ce119aeea5fed6ceecb7 (patch)
tree177dd946f66e5a4c9e0ebfe4b5b3456a5e7679cc /src/libsystemd/sd-bus/test-bus-zero-copy.c
parent3736955368e8a3a24962f5fdd25cce3281885c30 (diff)
bus: extend memfd api so that we can label memfds for debugging purposes
Diffstat (limited to 'src/libsystemd/sd-bus/test-bus-zero-copy.c')
-rw-r--r--src/libsystemd/sd-bus/test-bus-zero-copy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsystemd/sd-bus/test-bus-zero-copy.c b/src/libsystemd/sd-bus/test-bus-zero-copy.c
index 5ad8ed54b0..a2239acaa4 100644
--- a/src/libsystemd/sd-bus/test-bus-zero-copy.c
+++ b/src/libsystemd/sd-bus/test-bus-zero-copy.c
@@ -93,7 +93,7 @@ int main(int argc, char *argv[]) {
memset(p+1, 'L', FIRST_ARRAY-2);
p[FIRST_ARRAY-1] = '>';
- r = sd_memfd_new_and_map(&f, STRING_SIZE, (void**) &s);
+ r = sd_memfd_new_and_map(NULL, &f, STRING_SIZE, (void**) &s);
assert_se(r >= 0);
s[0] = '<';
@@ -112,7 +112,7 @@ int main(int argc, char *argv[]) {
sd_memfd_free(f);
- r = sd_memfd_new_and_map(&f, SECOND_ARRAY, (void**) &p);
+ r = sd_memfd_new_and_map(NULL, &f, SECOND_ARRAY, (void**) &p);
assert_se(r >= 0);
p[0] = '<';