diff options
Diffstat (limited to 'src/machine')
-rw-r--r-- | src/machine/machined-varlink.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/machine/machined-varlink.c b/src/machine/machined-varlink.c index 4b72ee9b0a..6ca98e27cf 100644 --- a/src/machine/machined-varlink.c +++ b/src/machine/machined-varlink.c @@ -157,8 +157,8 @@ static int vl_method_get_user_record(Varlink *link, JsonVariant *parameters, Var assert(parameters); - r = json_dispatch(parameters, dispatch_table, NULL, 0, &p); - if (r < 0) + r = varlink_dispatch(link, parameters, dispatch_table, &p); + if (r != 0) return r; if (!streq_ptr(p.service, "io.systemd.Machine")) @@ -322,8 +322,8 @@ static int vl_method_get_group_record(Varlink *link, JsonVariant *parameters, Va assert(parameters); - r = json_dispatch(parameters, dispatch_table, NULL, 0, &p); - if (r < 0) + r = varlink_dispatch(link, parameters, dispatch_table, &p); + if (r != 0) return r; if (!streq_ptr(p.service, "io.systemd.Machine")) @@ -367,8 +367,8 @@ static int vl_method_get_memberships(Varlink *link, JsonVariant *parameters, Var assert(parameters); - r = json_dispatch(parameters, dispatch_table, NULL, 0, &p); - if (r < 0) + r = varlink_dispatch(link, parameters, dispatch_table, &p); + if (r != 0) return r; if (!streq_ptr(p.service, "io.systemd.Machine")) |