chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sd-bus: rename "connection name" to "description" for the sd-bus API too
[elogind.git]
/
src
/
bus-proxyd
/
bus-proxyd.c
diff --git
a/src/bus-proxyd/bus-proxyd.c
b/src/bus-proxyd/bus-proxyd.c
index 8c1b6a5ad6281bfce44e27a271f332c529c6789f..d10de2f6442054f8150f389e4da2aa876eb13ab6 100644
(file)
--- a/
src/bus-proxyd/bus-proxyd.c
+++ b/
src/bus-proxyd/bus-proxyd.c
@@
-768,8
+768,8
@@
static int process_driver(sd_bus *a, sd_bus *b, sd_bus_message *m) {
char *n;
KDBUS_ITEM_FOREACH(item, name, items)
char *n;
KDBUS_ITEM_FOREACH(item, name, items)
- if (item->type == KDBUS_ITEM_NAME)
- entry_name = item->
str
;
+ if (item->type == KDBUS_ITEM_
OWNED_
NAME)
+ entry_name = item->
name.name
;
if (!streq_ptr(entry_name, arg0))
continue;
if (!streq_ptr(entry_name, arg0))
continue;
@@
-1192,7
+1192,7
@@
int main(int argc, char *argv[]) {
goto finish;
}
goto finish;
}
- r = sd_bus_set_
name
(a, "sd-proxy");
+ r = sd_bus_set_
description
(a, "sd-proxy");
if (r < 0) {
log_error("Failed to set bus name: %s", strerror(-r));
goto finish;
if (r < 0) {
log_error("Failed to set bus name: %s", strerror(-r));
goto finish;