sd-bus: sd_bus_slot_get_description() should return const strings
All other *_get_description() functions use 'const char**', so make sure sd_bus_slot_get_description() does the same. This changes API, but ABI stays stable. I think this is fine, but I wouldn't mind bumping SONAME. Reported in #528.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user