dmidecode/dmidecode-1.173-drop-cast.patch
Jean Delvare 31748488d0 - Update to upstream version 2.12:
* Adds support for SMBIOS 2.8. This includes new enumerated
    values for recent hardware.
  * Obsoletes dmidecode-add-SMBIOS-2_7_1-support.patch and
    dmidecode-fix-memory-array-location-overrun.patch.
  * Various minor fixes and clean-ups.
- dmidecode-1.173-drop-cast.patch: Drop unneeded and possibly
  dangerous cast.
- dmidecode-1.175-fix-SMBIOS-2.8.0.patch: Fix support for new
  processor upgrade types (DMI type 4) and new memory device type
  (DMI type 17.)

OBS-URL: https://build.opensuse.org/package/show/Base:System/dmidecode?expand=0&rev=19
2013-04-24 20:15:20 +00:00

19 lines
478 B
Diff

Subject: Drop unneeded and possibly dangerous cast
Upstream: yes, 1.173
---
dmidecode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- dmidecode-2.12.orig/dmidecode.c
+++ dmidecode-2.12/dmidecode.c
@@ -2236,7 +2236,7 @@ static void dmi_memory_voltage_value(u16
if (code == 0)
printf(" Unknown");
else
- printf(" %.3f V", (float)(i16)code / 1000);
+ printf(" %.3f V", (float)code / 1000);
}
static const char *dmi_memory_device_form_factor(u8 code)