From: Zbigniew Jędrzejewski-Szmek Date: Thu, 4 Mar 2021 13:35:46 +0000 (+0100) Subject: bus/bus-match: use "ret_" prefix for output parameters X-Git-Tag: v248-rc3~42^2~11 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4ff42f8327cdd67b311bcc6e4c38dc15d52feea7;p=thirdparty%2Fsystemd.git bus/bus-match: use "ret_" prefix for output parameters --- diff --git a/src/libsystemd/sd-bus/bus-match.c b/src/libsystemd/sd-bus/bus-match.c index 3725d279d58..db8da6ee120 100644 --- a/src/libsystemd/sd-bus/bus-match.c +++ b/src/libsystemd/sd-bus/bus-match.c @@ -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; diff --git a/src/libsystemd/sd-bus/bus-match.h b/src/libsystemd/sd-bus/bus-match.h index 577100081d5..d079f6aec7f 100644 --- a/src/libsystemd/sd-bus/bus-match.h +++ b/src/libsystemd/sd-bus/bus-match.h @@ -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);