diff options
author | Burt P <pburt0@gmail.com> | 2019-06-30 20:40:39 -0500 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2019-07-02 17:36:25 -0700 |
commit | 232789e79f67b3a2be4da7d23d7237c6866b27ad (patch) | |
tree | c465209d8319b65870c54fc680f31627fb8680be /modules/devices/x86/processor.c | |
parent | 947b4719c8d5ed2525dcacb44966d1c399944a7a (diff) |
x86: use new dmi_* types
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'modules/devices/x86/processor.c')
-rw-r--r-- | modules/devices/x86/processor.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/devices/x86/processor.c b/modules/devices/x86/processor.c index 4e36b817..957e88e9 100644 --- a/modules/devices/x86/processor.c +++ b/modules/devices/x86/processor.c @@ -680,7 +680,8 @@ gchar *processor_describe(GSList * processors) { gchar *dmi_socket_info() { gchar *ret = strdup(""); - unsigned long dt = 4, i; + dmi_type dt = 4; + int i; dmi_handle_list *hl = dmidecode_handles(&dt); if (!hl) { ret = g_strdup_printf("[%s]\n%s=%s\n", @@ -690,7 +691,7 @@ gchar *dmi_socket_info() { : _("(Not available; Perhaps try running HardInfo as root.)") ); } else { for(i = 0; i < hl->count; i++) { - unsigned long h = hl->handles[i]; + dmi_handle h = hl->handles[i]; gchar *upgrade = dmidecode_match("Upgrade", &dt, &h); gchar *socket = dmidecode_match("Socket Designation", &dt, &h); gchar *bus_clock_str = dmidecode_match("External Clock", &dt, &h); |