]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bus/bus-match: use "ret_" prefix for output parameters
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 4 Mar 2021 13:35:46 +0000 (14:35 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 6 Mar 2021 08:26:57 +0000 (09:26 +0100)
src/libsystemd/sd-bus/bus-match.c
src/libsystemd/sd-bus/bus-match.h

index 3725d279d58d533d134d541893e38236c0163ddc..db8da6ee1201581d8c46fab174cc4217382f2122 100644 (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;
 
index 577100081d59a81dfe4e0fae0ed406fa9f25de57..d079f6aec7f76a469fd8deb308e67e2e9641155a 100644 (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);