summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/test-bus-server.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-11-21 02:11:06 +0100
committerLennart Poettering <lennart@poettering.net>2013-11-21 02:11:06 +0100
commit14c24659cdc98e26049b98b965382a0c44eae008 (patch)
tree91c016bb26876391016c36c1f36111df0cbf4b9f /src/libsystemd-bus/test-bus-server.c
parentdf2d202e6ed4001a21c6512c244acad5d4706c87 (diff)
bus: rename SD_BUS_ERROR_MAKE to SD_BUS_ERROR_MAKE_CONST to indicate it only works for const strings
Diffstat (limited to 'src/libsystemd-bus/test-bus-server.c')
-rw-r--r--src/libsystemd-bus/test-bus-server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-bus/test-bus-server.c b/src/libsystemd-bus/test-bus-server.c
index 33a5dd5f6f..0e65ee782a 100644
--- a/src/libsystemd-bus/test-bus-server.c
+++ b/src/libsystemd-bus/test-bus-server.c
@@ -99,7 +99,7 @@ static void *server(void *p) {
} else if (sd_bus_message_is_method_call(m, NULL, NULL)) {
r = sd_bus_message_new_method_error(
m,
- &SD_BUS_ERROR_MAKE(SD_BUS_ERROR_UNKNOWN_METHOD, "Unknown method."),
+ &SD_BUS_ERROR_MAKE_CONST(SD_BUS_ERROR_UNKNOWN_METHOD, "Unknown method."),
&reply);
if (r < 0) {
log_error("Failed to allocate return: %s", strerror(-r));