summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/bus-control.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-04-13 20:12:27 +0200
committerLennart Poettering <lennart@poettering.net>2013-04-13 20:12:37 +0200
commit5b7d4c1c164d91b8c28c3dcd3921ad9863953ffa (patch)
tree563fa18a3f7da1f9cd05ff2bb960efe07a33744c /src/libsystemd-bus/bus-control.c
parentd378991747d67fff1d4dc39e7fb2bc8f49f1b561 (diff)
kdbus: update to newest kdbus API
Diffstat (limited to 'src/libsystemd-bus/bus-control.c')
-rw-r--r--src/libsystemd-bus/bus-control.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libsystemd-bus/bus-control.c b/src/libsystemd-bus/bus-control.c
index 7c139cfd32..185f77c968 100644
--- a/src/libsystemd-bus/bus-control.c
+++ b/src/libsystemd-bus/bus-control.c
@@ -64,7 +64,7 @@ int sd_bus_request_name(sd_bus *bus, const char *name, int flags) {
l = strlen(name);
n = alloca(offsetof(struct kdbus_cmd_name, name) + l + 1);
n->size = offsetof(struct kdbus_cmd_name, name) + l + 1;
- n->flags = flags;
+ n->name_flags = flags;
n->id = 0;
memcpy(n->name, name, l+1);
@@ -72,7 +72,7 @@ int sd_bus_request_name(sd_bus *bus, const char *name, int flags) {
if (r < 0)
return -errno;
- return n->flags;
+ return n->name_flags;
} else {
r = sd_bus_call_method(
bus,
@@ -115,7 +115,7 @@ int sd_bus_release_name(sd_bus *bus, const char *name) {
l = strlen(name);
n = alloca(offsetof(struct kdbus_cmd_name, name) + l + 1);
n->size = offsetof(struct kdbus_cmd_name, name) + l + 1;
- n->flags = 0;
+ n->name_flags = 0;
n->id = 0;
memcpy(n->name, name, l+1);
@@ -123,7 +123,7 @@ int sd_bus_release_name(sd_bus *bus, const char *name) {
if (r < 0)
return -errno;
- return n->flags;
+ return n->name_flags;
} else {
r = sd_bus_call_method(
bus,