Several compiler warning fixes These were in SUSE distris for quite some time and got forwardported from 1.8.10 to 1.8.11. --- lib/ipmi_ekanalyzer.c | 24 ++++++++++++++---------- lib/ipmi_fru.c | 3 ++- lib/ipmi_hpmfwupg.c | 8 ++++---- 3 files changed, 20 insertions(+), 15 deletions(-) Index: ipmitool-1.8.11/lib/ipmi_ekanalyzer.c =================================================================== --- ipmitool-1.8.11.orig/lib/ipmi_ekanalyzer.c +++ ipmitool-1.8.11/lib/ipmi_ekanalyzer.c @@ -3025,9 +3025,10 @@ ipmi_ek_display_address_table_record( st for ( i = 0; i < entries; i++ ){ printf("\tHWAddr: 0x%02x - SiteNum: 0x%02x - SiteType: 0x%02x \n", - record->data[offset++], - record->data[offset++], - record->data[offset++]); + record->data[offset+2], + record->data[offset+1], + record->data[offset+0]); + offset += 3; } } @@ -3148,21 +3149,24 @@ ipmi_ek_display_shelf_ip_connection_reco int offset = START_DATA_OFFSET; if (offset > record->header.len){ printf(" Shelf Manager IP Address: %d.%d.%d.%d\n", - record->data[offset++], record->data[offset++], - record->data[offset++], record->data[offset++] + record->data[offset+3], record->data[offset+2], + record->data[offset+1], record->data[offset+0] ); + offset += 4; } if (offset > record->header.len){ printf(" Default Gateway Address: %d.%d.%d.%d\n", - record->data[offset++], record->data[offset++], - record->data[offset++], record->data[offset++] + record->data[offset+3], record->data[offset+2], + record->data[offset+1], record->data[offset+0] ); + offset += 4; } if (offset > record->header.len){ - printf(" Subnet Mask: %d.%d.%d.%d\n", record->data[offset++], - record->data[offset++], record->data[offset++], - record->data[offset++] + printf(" Subnet Mask: %d.%d.%d.%d\n", + record->data[offset+3], record->data[offset+2], + record->data[offset+1], record->data[offset+0] ); + offset += 4; } } Index: ipmitool-1.8.11/lib/ipmi_fru.c =================================================================== --- ipmitool-1.8.11.orig/lib/ipmi_fru.c +++ ipmitool-1.8.11/lib/ipmi_fru.c @@ -1840,7 +1840,8 @@ static void ipmi_fru_picmg_ext_print(uin for (i=0; i