summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus
diff options
context:
space:
mode:
authorDaniel Mack <zonque@gmail.com>2013-11-29 21:58:39 +0100
committerDaniel Mack <zonque@gmail.com>2013-11-29 22:01:34 +0100
commit3519d4c895b45adc6e0791e1a344574f78b2d1be (patch)
tree6fdeaa5d1faed4173a5a2ffc0562be1aea1c1770 /src/libsystemd-bus
parent98f17eda0f2958946da2a206e9a614a489304624 (diff)
libsystemd-bus: sd_bus_request_name: use kdbus_translate_request_name_flags()
Diffstat (limited to 'src/libsystemd-bus')
-rw-r--r--src/libsystemd-bus/bus-control.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-bus/bus-control.c b/src/libsystemd-bus/bus-control.c
index daa10eb760..a0eeb305da 100644
--- a/src/libsystemd-bus/bus-control.c
+++ b/src/libsystemd-bus/bus-control.c
@@ -68,7 +68,7 @@ _public_ int sd_bus_request_name(sd_bus *bus, const char *name, int flags) {
l = strlen(name);
n = alloca0(offsetof(struct kdbus_cmd_name, name) + l + 1);
n->size = offsetof(struct kdbus_cmd_name, name) + l + 1;
- n->flags = flags;
+ kdbus_translate_request_name_flags(flags, (uint64_t *) &n->flags);
memcpy(n->name, name, l+1);
#ifdef HAVE_VALGRIND_MEMCHECK_H