diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-07-09 11:38:11 -0300 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-07-09 11:38:11 -0300 |
commit | d711ea2b95279b33c53e535723515b70bddbcc75 (patch) | |
tree | 748fc16810439581b6cc0f9a25f80d633645e2c6 /src/libsystemd/sd-bus | |
parent | 254214bfcdf2026ea74dd9d69690d89b7ea9cd39 (diff) | |
parent | 839b6dbba9a6e4f08ddc2ae6d2b2b260d76f7c74 (diff) |
Merge pull request #529 from dvdhrm/bus-slot-description
sd-bus: sd_bus_slot_get_description() should return const strings
Diffstat (limited to 'src/libsystemd/sd-bus')
-rw-r--r-- | src/libsystemd/sd-bus/bus-slot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-bus/bus-slot.c b/src/libsystemd/sd-bus/bus-slot.c index c452477566..b149ea16da 100644 --- a/src/libsystemd/sd-bus/bus-slot.c +++ b/src/libsystemd/sd-bus/bus-slot.c @@ -273,7 +273,7 @@ _public_ int sd_bus_slot_set_description(sd_bus_slot *slot, const char *descript return free_and_strdup(&slot->description, description); } -_public_ int sd_bus_slot_get_description(sd_bus_slot *slot, char **description) { +_public_ int sd_bus_slot_get_description(sd_bus_slot *slot, const char **description) { assert_return(slot, -EINVAL); assert_return(description, -EINVAL); assert_return(slot->description, -ENXIO); |