[PATCH phosphor-host-ipmid 3/7] host-services: Add ipmid-api header
OpenBMC Patches
openbmc-patches at stwcx.xyz
Wed Nov 25 18:10:20 AEDT 2015
From: Joel Stanley <joel at jms.id.au>
Needed for a prototype for ipmid_get_sd_bus_connection.
Signed-off-by: Joel Stanley <joel at jms.id.au>
---
host-services.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
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
--
2.6.3
More information about the openbmc
mailing list