1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-11 05:17:44 +03:00

bus/bus-match: use "ret_" prefix for output parameters

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2021-03-04 14:35:46 +01:00
parent fd5b9b8473
commit 4ff42f8327
2 changed files with 7 additions and 7 deletions

View File

@ -707,8 +707,8 @@ void bus_match_parse_free(struct bus_match_component *components, unsigned n_com
int bus_match_parse(
const char *match,
struct bus_match_component **_components,
unsigned *_n_components) {
struct bus_match_component **ret_components,
unsigned *ret_n_components) {
const char *p = match;
struct bus_match_component *components = NULL;
@ -718,8 +718,8 @@ int bus_match_parse(
int r;
assert(match);
assert(_components);
assert(_n_components);
assert(ret_components);
assert(ret_n_components);
while (*p != 0) {
const char *eq, *q;
@ -835,8 +835,8 @@ int bus_match_parse(
goto fail;
}
*_components = components;
*_n_components = n_components;
*ret_components = components;
*ret_n_components = n_components;
return 0;

View File

@ -73,7 +73,7 @@ void bus_match_dump(struct bus_match_node *node, unsigned level);
const char* bus_match_node_type_to_string(enum bus_match_node_type t, char buf[], size_t l);
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 **_components, unsigned *_n_components);
int bus_match_parse(const char *match, struct bus_match_component **ret_components, unsigned *ret_n_components);
void bus_match_parse_free(struct bus_match_component *components, unsigned n_components);
char *bus_match_to_string(struct bus_match_component *components, unsigned n_components);