summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Jeffery <andrew@aj.id.au>2018-11-01 10:45:35 +1030
committerAndrew Jeffery <andrew@aj.id.au>2018-11-01 10:45:35 +1030
commit6c4d8ba381c1edf48ad45691443d86abb38246a0 (patch)
tree75c7640c5c63286b76e4fac106cfbc6c4320f1be
parent5f86227e1619f60dadc8a053d14b20338d0fbdac (diff)
downloadphosphor-mboxbridge-6c4d8ba381c1edf48ad45691443d86abb38246a0.tar.gz
phosphor-mboxbridge-6c4d8ba381c1edf48ad45691443d86abb38246a0.zip
mboxctl: Fix Control.Resume argument type
The daemon implements the argument with a boolean type parameter but we were passing a char from mboxctl, which makes the call fail. Fix the parameter type in mboxctl to match mboxd. Change-Id: Ib271d165e823cf9e793e6493cec409c45f82d231 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
-rw-r--r--mboxctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mboxctl.c b/mboxctl.c
index e5262e1..9dbc149 100644
--- a/mboxctl.c
+++ b/mboxctl.c
@@ -236,7 +236,7 @@ static int handle_cmd_resume(struct mboxctl_context *context, char *sarg)
goto out;
}
- rc = sd_bus_message_append(m, "y", arg);
+ rc = sd_bus_message_append(m, "b", arg);
if (rc < 0) {
MSG_ERR("Failed to add args to message: %s\n",
strerror(-rc));
OpenPOWER on IntegriCloud