[PATCH phosphor-host-ipmid] set usec so settimeofday call doesn't fail

OpenBMC Patches openbmc-patches at stwcx.xyz
Sun Jan 17 00:20:25 AEDT 2016


From: Norman James <njames at us.ibm.com>

---
 storagehandler.C | 1 +
 1 file changed, 1 insertion(+)

diff --git a/storagehandler.C b/storagehandler.C
index f3e2532..a68da8f 100644
--- a/storagehandler.C
+++ b/storagehandler.C
@@ -60,6 +60,7 @@ ipmi_ret_t ipmi_storage_set_sel_time(ipmi_netfn_t netfn, ipmi_cmd_t cmd,
 
     struct timeval sel_time;
     sel_time.tv_sec = le32toh(*secs);
+    sel_time.tv_usec = 0;
     ipmi_ret_t rc = IPMI_CC_OK;
     int rct = settimeofday(&sel_time, NULL);
 
-- 
2.6.4




More information about the openbmc mailing list