diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2021-07-22 15:14:42 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-07-23 09:45:53 +0700 |
commit | d4c9d934e1b5ca00471a7aab1b532a4c4caaef71 (patch) | |
tree | bc09d610af7dbed57a9ed250a64367bd1d492dd6 /system/ipmitool/patches/0005-sensor-id-length.patch | |
parent | 1b75dc275d130abf0c6fe11e4d4ccce087dc7c0a (diff) |
system/ipmitool: Add many patches from fedora.
Fix build with gcc >= 10.x (thanks, Daedra!)
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/ipmitool/patches/0005-sensor-id-length.patch')
-rw-r--r-- | system/ipmitool/patches/0005-sensor-id-length.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/system/ipmitool/patches/0005-sensor-id-length.patch b/system/ipmitool/patches/0005-sensor-id-length.patch new file mode 100644 index 0000000000..0cb8313d6c --- /dev/null +++ b/system/ipmitool/patches/0005-sensor-id-length.patch @@ -0,0 +1,16 @@ +diff --git a/include/ipmitool/ipmi_sdr.h b/include/ipmitool/ipmi_sdr.h +index ccf0cf0..47d3949 100644 +--- a/include/ipmitool/ipmi_sdr.h ++++ b/include/ipmitool/ipmi_sdr.h +@@ -819,7 +819,7 @@ static const char *sensor_type_desc[] __attribute__ ((unused)) = { + "Version Change", "FRU State" }; + + struct sensor_reading { +- char s_id[17]; /* name of the sensor */ ++ char s_id[33]; /* name of the sensor */ + struct sdr_record_full_sensor *full; + struct sdr_record_compact_sensor *compact; + uint8_t s_reading_valid; /* read value valididity */ +-- +2.1.0 + |