summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/test-bus-server.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-05-17 04:25:56 +0200
committerLennart Poettering <lennart@poettering.net>2013-05-17 04:26:27 +0200
commit264ad849a4a0acf1ca392da62b7018d4fe7b66b3 (patch)
tree8748443973e9c40789710e90531ef1dff2d1e40b /src/libsystemd-bus/test-bus-server.c
parent45fbe937d7ca8d0da9ea276d57bc70ebd41c285e (diff)
bus: add APIs for negotiating what is attached to messages
Diffstat (limited to 'src/libsystemd-bus/test-bus-server.c')
-rw-r--r--src/libsystemd-bus/test-bus-server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsystemd-bus/test-bus-server.c b/src/libsystemd-bus/test-bus-server.c
index a9772624f2..ef26a65d87 100644
--- a/src/libsystemd-bus/test-bus-server.c
+++ b/src/libsystemd-bus/test-bus-server.c
@@ -55,8 +55,8 @@ static void *server(void *p) {
assert_se(sd_bus_new(&bus) >= 0);
assert_se(sd_bus_set_fd(bus, c->fds[0], c->fds[0]) >= 0);
assert_se(sd_bus_set_server(bus, 1, id) >= 0);
- assert_se(sd_bus_set_negotiate_fds(bus, c->server_negotiate_unix_fds) >= 0);
assert_se(sd_bus_set_anonymous(bus, c->server_anonymous_auth) >= 0);
+ assert_se(sd_bus_negotiate_fds(bus, c->server_negotiate_unix_fds) >= 0);
assert_se(sd_bus_start(bus) >= 0);
while (!quit) {
@@ -134,7 +134,7 @@ static int client(struct context *c) {
assert_se(sd_bus_new(&bus) >= 0);
assert_se(sd_bus_set_fd(bus, c->fds[1], c->fds[1]) >= 0);
- assert_se(sd_bus_set_negotiate_fds(bus, c->client_negotiate_unix_fds) >= 0);
+ assert_se(sd_bus_negotiate_fds(bus, c->client_negotiate_unix_fds) >= 0);
assert_se(sd_bus_set_anonymous(bus, c->client_anonymous_auth) >= 0);
assert_se(sd_bus_start(bus) >= 0);