summaryrefslogtreecommitdiffstats
path: root/src/varlinkctl
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2024-01-17 10:25:17 +0100
committerLennart Poettering <lennart@poettering.net>2024-01-17 16:14:10 +0100
commit0444391d1ea61d951020ccc1b020b30f3cf64510 (patch)
tree133d6bd33e48d7e8bb485d3dbf28c07b12bb860b /src/varlinkctl
parentvarlink: if varlink_call() is called with ret_error_id=NULL propagate error v... (diff)
downloadsystemd-0444391d1ea61d951020ccc1b020b30f3cf64510.tar.xz
systemd-0444391d1ea61d951020ccc1b020b30f3cf64510.zip
varlink: drop "ret_flags" parameter from varlink_call()
The parameter returns the flags field of the reply message. This is only relevant in very few cases, hence drop it from the call, but keep it in a more generic varlink_call_full() call for those who need it. Do something similar for varlink_callb().
Diffstat (limited to 'src/varlinkctl')
-rw-r--r--src/varlinkctl/varlinkctl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/varlinkctl/varlinkctl.c b/src/varlinkctl/varlinkctl.c
index 64105c7ab2..9c8a8d9710 100644
--- a/src/varlinkctl/varlinkctl.c
+++ b/src/varlinkctl/varlinkctl.c
@@ -211,7 +211,7 @@ static int verb_info(int argc, char *argv[], void *userdata) {
JsonVariant *reply = NULL;
const char *error = NULL;
- r = varlink_call(vl, "org.varlink.service.GetInfo", NULL, &reply, &error, NULL);
+ r = varlink_call(vl, "org.varlink.service.GetInfo", /* parameters= */ NULL, &reply, &error);
if (r < 0)
return log_error_errno(r, "Failed to issue GetInfo() call: %m");
if (error)
@@ -297,7 +297,7 @@ static int verb_introspect(int argc, char *argv[], void *userdata) {
JsonVariant *reply = NULL;
const char *error = NULL;
- r = varlink_callb(vl, "org.varlink.service.GetInterfaceDescription", &reply, &error, NULL, JSON_BUILD_OBJECT(JSON_BUILD_PAIR_STRING("interface", interface)));
+ r = varlink_callb(vl, "org.varlink.service.GetInterfaceDescription", &reply, &error, JSON_BUILD_OBJECT(JSON_BUILD_PAIR_STRING("interface", interface)));
if (r < 0)
return log_error_errno(r, "Failed to issue GetInterfaceDescription() call: %m");
if (error)
@@ -432,7 +432,7 @@ static int verb_call(int argc, char *argv[], void *userdata) {
JsonVariant *reply = NULL;
const char *error = NULL;
- r = varlink_call(vl, method, jp, &reply, &error, NULL);
+ r = varlink_call(vl, method, jp, &reply, &error);
if (r < 0)
return log_error_errno(r, "Failed to issue %s() call: %m", method);