various: move ptr indicator to return value

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2024-06-19 16:37:12 +02:00
parent bfd5a0687f
commit ff3f29537c
68 changed files with 148 additions and 148 deletions
+1 -1
View File
@@ -461,7 +461,7 @@ static int image_object_find(sd_bus *bus, const char *path, const char *interfac
return 1;
}
char *image_bus_path(const char *name) {
char* image_bus_path(const char *name) {
_cleanup_free_ char *e = NULL;
assert(name);
+1 -1
View File
@@ -8,7 +8,7 @@
extern const BusObjectImplementation image_object;
int manager_acquire_image(Manager *m, const char *name, Image **ret);
char *image_bus_path(const char *name);
char* image_bus_path(const char *name);
int bus_image_method_remove(sd_bus_message *message, void *userdata, sd_bus_error *error);
int bus_image_method_rename(sd_bus_message *message, void *userdata, sd_bus_error *error);
+1 -1
View File
@@ -1231,7 +1231,7 @@ static int machine_object_find(sd_bus *bus, const char *path, const char *interf
return 1;
}
char *machine_bus_path(Machine *m) {
char* machine_bus_path(Machine *m) {
_cleanup_free_ char *e = NULL;
assert(m);
+1 -1
View File
@@ -13,7 +13,7 @@ typedef enum {
extern const BusObjectImplementation machine_object;
char *machine_bus_path(Machine *s);
char* machine_bus_path(Machine *s);
int bus_machine_method_unregister(sd_bus_message *message, void *userdata, sd_bus_error *error);
int bus_machine_method_terminate(sd_bus_message *message, void *userdata, sd_bus_error *error);