summaryrefslogtreecommitdiffstats
path: root/host-services.c
diff options
context:
space:
mode:
authorJoel Stanley <joel@jms.id.au>2015-11-25 17:28:33 +1030
committerJoel Stanley <joel@jms.id.au>2015-11-25 17:28:50 +1030
commit43776835017ebd2d67a72771254c67f0cf6e106e (patch)
treeee509e72f66d0354ca7bd4b797030d3304506ba3 /host-services.c
parentc99350c7a44e8e34d42d331b041cd7b571c9388a (diff)
downloadphosphor-host-ipmid-43776835017ebd2d67a72771254c67f0cf6e106e.tar.gz
phosphor-host-ipmid-43776835017ebd2d67a72771254c67f0cf6e106e.zip
host-services: Add ipmid-api header
Needed for a prototype for ipmid_get_sd_bus_connection. Signed-off-by: Joel Stanley <joel@jms.id.au>
Diffstat (limited to 'host-services.c')
-rw-r--r--host-services.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/host-services.c b/host-services.c
index 89f0b6c..ab9cfcc 100644
--- a/host-services.c
+++ b/host-services.c
@@ -3,6 +3,8 @@
#include <errno.h>
#include <systemd/sd-bus.h>
+#include "ipmid-api.h"
+
// OpenBMC Host IPMI dbus framework
const char *bus_name = "org.openbmc.HostIpmi";
const char *object_name = "/org/openbmc/HostIpmi/1";
@@ -38,7 +40,7 @@ static int soft_power_off(sd_bus_message *m, void *userdata, sd_bus_error *ret_e
sd_bus_error bus_error = SD_BUS_ERROR_NULL;
// Gets a hook onto either a SYSTEM or SESSION bus
- sd_bus *bus = (sd_bus *)ipmid_get_sd_bus_connection();
+ sd_bus *bus = ipmid_get_sd_bus_connection();
rc = sd_bus_call_method(bus, // On the System Bus
bus_name, // Service to contact
OpenPOWER on IntegriCloud