[PATCH openpower-host-ipmi-oem v3 5/7] fix build break with array of pointers

OpenBMC Patches patches at stwcx.xyz
Sat Oct 17 07:29:39 AEDT 2015


From: Chris Austen <austenc at us.ibm.com>

---
 oemhandler.C | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/oemhandler.C b/oemhandler.C
index f05a0f3..427831c 100644
--- a/oemhandler.C
+++ b/oemhandler.C
@@ -11,8 +11,8 @@ uint16_t g_record_id = 0x0100;
 
 #define LSMSSWAP(x,y) ((y)<<8|(x))
 
-const char *fio_wb[] = "wb";
-const char *fio_rb[] = "rb+";
+const char *fio_wb = "wb";
+const char *fio_rb = "rb+";
 
 
 ///////////////////////////////////////////////////////////////////////////////
@@ -37,7 +37,7 @@ ipmi_ret_t ipmi_ibm_oem_partial_esel(ipmi_netfn_t netfn, ipmi_cmd_t cmd,
     uint8_t rlen;
     ipmi_ret_t rc = IPMI_CC_OK;
     char string[64];
-    char *pio;
+    const char *pio;
 
     
     offset = LSMSSWAP(reqptr->offsetls, reqptr->offsetms);
-- 
2.6.0




More information about the openbmc mailing list