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
@@ -286,7 +286,7 @@ const char* bus_message_type_to_string(uint8_t u) {
return NULL;
}
char *bus_address_escape(const char *v) {
char* bus_address_escape(const char *v) {
const char *a;
char *r, *b;
+2 -2
View File
@@ -360,7 +360,7 @@ bool service_name_is_valid(const char *p) _pure_;
bool member_name_is_valid(const char *p) _pure_;
bool object_path_is_valid(const char *p) _pure_;
char *object_path_startswith(const char *a, const char *b) _pure_;
char* object_path_startswith(const char *a, const char *b) _pure_;
bool namespace_complex_pattern(const char *pattern, const char *value) _pure_;
bool path_complex_pattern(const char *pattern, const char *value) _pure_;
@@ -385,7 +385,7 @@ int bus_rqueue_make_room(sd_bus *bus);
bool bus_origin_changed(sd_bus *bus);
char *bus_address_escape(const char *v);
char* bus_address_escape(const char *v);
int bus_attach_io_events(sd_bus *b);
int bus_attach_inotify_event(sd_bus *b);
+1 -1
View File
@@ -823,7 +823,7 @@ int bus_match_parse(
return 0;
}
char *bus_match_to_string(struct bus_match_component *components, size_t n_components) {
char* bus_match_to_string(struct bus_match_component *components, size_t n_components) {
_cleanup_(memstream_done) MemStream m = {};
FILE *f;
int r;
+1 -1
View File
@@ -77,6 +77,6 @@ enum bus_match_node_type bus_match_node_type_from_string(const char *k, size_t n
int bus_match_parse(const char *match, struct bus_match_component **ret_components, size_t *ret_n_components);
void bus_match_parse_free(struct bus_match_component *components, size_t n_components);
char *bus_match_to_string(struct bus_match_component *components, size_t n_components);
char* bus_match_to_string(struct bus_match_component *components, size_t n_components);
enum bus_match_scope bus_match_get_scope(const struct bus_match_component *components, size_t n_components);
+1 -1
View File
@@ -136,7 +136,7 @@ struct sd_journal {
Hashmap *errors;
};
char *journal_make_match_string(sd_journal *j);
char* journal_make_match_string(sd_journal *j);
void journal_print_header(sd_journal *j);
int journal_get_directories(sd_journal *j, char ***ret);
+1 -1
View File
@@ -431,7 +431,7 @@ static char *match_make_string(Match *m) {
return TAKE_PTR(p);
}
char *journal_make_match_string(sd_journal *j) {
char* journal_make_match_string(sd_journal *j) {
assert(j);
return match_make_string(j->level0);