Cleanup and compiler issues only, no functional change Changes partly very old and not possible to find the original author. Signed-off-by: Thomas Renninger Index: ipmitool-1.8.16/lib/ipmi_ekanalyzer.c =================================================================== --- ipmitool-1.8.16.orig/lib/ipmi_ekanalyzer.c 2015-11-22 13:50:54.000000000 +0100 +++ ipmitool-1.8.16/lib/ipmi_ekanalyzer.c 2016-02-25 13:25:42.079597717 +0100 @@ -3365,7 +3365,7 @@ ipmi_ek_display_board_p2p_record(struct printf("\n"); offset += sizeof(struct fru_picmgext_guid); } - for (offset; + for (; offset < record->header.len; offset += sizeof(struct fru_picmgext_link_desc)) { /* to solve little endian/big endian problem */ @@ -3524,7 +3524,7 @@ ipmi_ek_display_radial_ipmb0_record(stru if (record->data[offset] < 1) { return; } - for (offset; offset < record->header.len;) { + for (; offset < record->header.len;) { unsigned char entry_count = 0; printf(" IPMB-0 Hub Descriptor\n"); printf("\tHardware Address: 0x%02x\n", @@ -3982,7 +3982,7 @@ ipmi_ek_display_clock_config_record(stru (feature & 1) ? "Source" : "Receiver"); printf("\tFamily: 0x%02x - AccLVL: 0x%02x\n", family, accuracy); - printf("\tFRQ: %-9ld - min: %-9ld - max: %-9ld\n", + printf("\tFRQ: %-9lu - min: %-9lu - max: %-9lu\n", freq, min_freq, max_freq); } printf("\n"); Index: ipmitool-1.8.16/lib/ipmi_picmg.c =================================================================== --- ipmitool-1.8.16.orig/lib/ipmi_picmg.c 2015-11-22 13:50:54.000000000 +0100 +++ ipmitool-1.8.16/lib/ipmi_picmg.c 2016-02-25 13:25:42.087598155 +0100 @@ -855,7 +855,7 @@ ipmi_picmg_portstate_get(struct ipmi_int } else if (d->type >= 0x06 && d->type <= 0xef) { - printf("Reserved\n"); + printf("Reserved %d\n",d->type); } else if (d->type >= 0xf0 && d->type <= 0xfe) { @@ -1703,7 +1703,7 @@ ipmi_picmg_clk_get(struct ipmi_intf * in oemval2str( rsp->data[3], rsp->data[4], picmg_clk_accuracy_vals)); - printf(" - Freq: %ld\n", freq); + printf(" - Freq: %lu\n", freq); } } } Index: ipmitool-1.8.16/lib/ipmi_sdr.c =================================================================== --- ipmitool-1.8.16.orig/lib/ipmi_sdr.c 2015-11-22 13:50:54.000000000 +0100 +++ ipmitool-1.8.16/lib/ipmi_sdr.c 2016-02-25 13:25:42.095598619 +0100 @@ -52,6 +52,7 @@ #include #include #include +#include #if HAVE_CONFIG_H # include