summaryrefslogtreecommitdiff
path: root/src/analyze
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-02-16 14:04:36 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-02-16 14:04:36 -0500
commit2404701e679904979751816930101511d8ec5d49 (patch)
tree618719c0296c0362978d5f8f2f662a9ef103fad7 /src/analyze
parentd49dc8127676358e706663f3603265942d2507aa (diff)
downloadsystemd-2404701e679904979751816930101511d8ec5d49.tar.gz
Transpose args in strv_fnmatch() to be more oo
Diffstat (limited to 'src/analyze')
-rw-r--r--src/analyze/analyze.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/analyze/analyze.c b/src/analyze/analyze.c
index 1e2a6bbf25..591b4ab14e 100644
--- a/src/analyze/analyze.c
+++ b/src/analyze/analyze.c
@@ -980,11 +980,11 @@ static int graph_one_property(sd_bus *bus, const UnitInfo *u, const char* prop,
assert(prop);
assert(color);
- match_patterns = strv_fnmatch(u->id, patterns, 0);
+ match_patterns = strv_fnmatch(patterns, u->id, 0);
if (!strv_isempty(arg_dot_from_patterns) &&
!match_patterns &&
- !strv_fnmatch(u->id, arg_dot_from_patterns, 0))
+ !strv_fnmatch(arg_dot_from_patterns, u->id, 0))
return 0;
r = bus_get_unit_property_strv(bus, u->unit_path, prop, &units);
@@ -994,11 +994,11 @@ static int graph_one_property(sd_bus *bus, const UnitInfo *u, const char* prop,
STRV_FOREACH(unit, units) {
bool match_patterns2;
- match_patterns2 = strv_fnmatch(*unit, patterns, 0);
+ match_patterns2 = strv_fnmatch(patterns, *unit, 0);
if (!strv_isempty(arg_dot_to_patterns) &&
!match_patterns2 &&
- !strv_fnmatch(*unit, arg_dot_to_patterns, 0))
+ !strv_fnmatch(arg_dot_to_patterns, *unit, 0))
continue;
if (!strv_isempty(patterns) && !match_patterns && !match_patterns2)