summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/test-bus-chat.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-03-31 16:46:21 +0200
committerLennart Poettering <lennart@poettering.net>2013-03-31 16:46:21 +0200
commit98178d3947d951ca001eaf400b5f362f458dceb5 (patch)
treea4345b294f68d22bd3eb84ca066420652e767d2f /src/libsystemd-bus/test-bus-chat.c
parent52f3ba915bdce4d7476c3ea53b8371deff5f567d (diff)
bus: rename sd_bus_get_peer() to sd_bus_get_server_id()
This function always returns the server side ID. The name suggested it was actually always the peer's ID, but that's not correct if the call is called on a server bus context. Hence, let's correct the name a bit.
Diffstat (limited to 'src/libsystemd-bus/test-bus-chat.c')
-rw-r--r--src/libsystemd-bus/test-bus-chat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsystemd-bus/test-bus-chat.c b/src/libsystemd-bus/test-bus-chat.c
index 2dd30912cf..459d39fdee 100644
--- a/src/libsystemd-bus/test-bus-chat.c
+++ b/src/libsystemd-bus/test-bus-chat.c
@@ -85,9 +85,9 @@ static int server_init(sd_bus **_bus) {
goto fail;
}
- r = sd_bus_get_peer(bus, &id);
+ r = sd_bus_get_server_id(bus, &id);
if (r < 0) {
- log_error("Failed to get peer ID: %s", strerror(-r));
+ log_error("Failed to get server ID: %s", strerror(-r));
goto fail;
}