static void set_sel_time(IPMIBmcSim *ibs,

                         uint8_t *cmd, unsigned int cmd_len,

                         uint8_t *rsp, unsigned int *rsp_len,

                         unsigned int max_rsp_len)

{

    uint32_t val;

    struct ipmi_time now;



    IPMI_CHECK_CMD_LEN(6);

    val = cmd[2] | (cmd[3] << 8) | (cmd[4] << 16) | (cmd[5] << 24);

    ipmi_gettime(&now);

    ibs->sel.time_offset = now.tv_sec - ((long) val);

}

static void set_sel_time(IPMIBmcSim *ibs,

                         uint8_t *cmd, unsigned int cmd_len,

                         uint8_t *rsp, unsigned int *rsp_len,

                         unsigned int max_rsp_len)

{

    uint32_t val;

    struct ipmi_time now;



    IPMI_CHECK_CMD_LEN(6);

    val = cmd[2] | (cmd[3] << 8) | (cmd[4] << 16) | (cmd[5] << 24);

    ipmi_gettime(&now);

    ibs->sel.time_offset = now.tv_sec - ((long) val);

}

    IPMI_CHECK_CMD_LEN(6);
static void FUNC_0(IPMIBmcSim *VAR_0,

                         uint8_t *VAR_1, unsigned int VAR_2,

                         uint8_t *VAR_3, unsigned int *VAR_4,

                         unsigned int VAR_5)

{

    uint32_t val;

    struct ipmi_time VAR_6;



    IPMI_CHECK_CMD_LEN(6);

    val = VAR_1[2] | (VAR_1[3] << 8) | (VAR_1[4] << 16) | (VAR_1[5] << 24);

    ipmi_gettime(&VAR_6);

    VAR_0->sel.time_offset = VAR_6.tv_sec - ((long) val);

}

static void FUNC_0(IPMIBmcSim *VAR_0,
uint8_t *VAR_1, unsigned int VAR_2,
uint8_t *VAR_3, unsigned int *VAR_4,
unsigned int VAR_5)
{ uint32_t val; struct ipmi_time VAR_6; IPMI_CHECK_CMD_LEN(6); val = VAR_1[2] | (VAR_1[3] << 8) | (VAR_1[4] << 16) | (VAR_1[5] << 24); ipmi_gettime(&VAR_6); VAR_0->sel.time_offset = VAR_6.tv_sec - ((long) val); }